Skip to content

Commit

Permalink
fixed forge
Browse files Browse the repository at this point in the history
  • Loading branch information
Okazakee committed May 25, 2024
1 parent 2829d99 commit 7225f0f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mcserver.sh
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,8 @@ if [ -z "$RUN_COMMAND" ]; then
echo ""
rcmd=$(grep -m 1 "java" /mcserver/run.sh)
# Strip the "$@" from the end of the line and add nogui to the end
rcmd=$(echo $rcmd | sed 's/"$@"/nogui/')
rcmd=$(echo $rcmd | sed 's/--onlyCheckJava || exit 1//')
rcmd="$rcmd nogui"
printf '\033[0;33mNew forge run command: %s \033[0m' "$rcmd"
echo ""
# If user has set MC_RAM then we will use it by appending it to the user_jvm_args.txt file
Expand Down Expand Up @@ -286,7 +287,6 @@ then
# Start directly the server when lazymc is disabled
echo "\033[0;33mStarting the server! \033[0m"
echo ""
echo $RUN_COMMAND
if ! $RUN_COMMAND
then
echo "\033[0;31mError: Could not start the server. Exiting... \033[0m" | tee server_cfg.txt
Expand Down

0 comments on commit 7225f0f

Please sign in to comment.