Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion libexec/mcwrapper
Original file line number Diff line number Diff line change
Expand Up @@ -483,7 +483,11 @@ function start_minecraft {
pushd $MINECRAFT_SERVER_DIR_PATH &> /dev/null

set_up_pipe
create_pid $(start_minecraft_in_background)
if [[ $FOREGROUND -eq 1 ]]; then
create_pid $(start_minecraft_in_foreground)
else
create_pid $(start_minecraft_in_background)
fi

# sleep for one second to make sure that the process actually started properly.
sleep 1
Expand Down