Skip to content

Commit

Permalink
Add unix_args.txt check (#31)
Browse files Browse the repository at this point in the history
  • Loading branch information
hwalker928 authored Dec 16, 2023
1 parent 98b589e commit 880e9ee
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion java/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,11 @@ fi

# Forge 1.17.1+
if [ -n "${FORGE_VERSION}" ]; then
MODIFIED_STARTUP="java -Xms128M -Xmx${SERVER_MEMORY}M -Dterminal.jline=false -Dterminal.ansi=true @libraries/net/minecraftforge/forge/${FORGE_VERSION}/unix_args.txt"
if [ -f "libraries/net/minecraftforge/forge/${FORGE_VERSION}/unix_args.txt" ]; then
MODIFIED_STARTUP="java -Xms128M -Xmx${SERVER_MEMORY}M -Dterminal.jline=false -Dterminal.ansi=true @libraries/net/minecraftforge/forge/${FORGE_VERSION}/unix_args.txt"
else
echo -e "\033[1;33mNOTE: \033[0mReverting to default startup, unix_args.txt was not found."
fi
fi

# Aikar flags
Expand Down

0 comments on commit 880e9ee

Please sign in to comment.