Added support for Forge 1.17's run.sh mechanism

#986
This commit is contained in:
Geoff Bourne 2021-07-23 21:16:51 -05:00
parent 4168821ec4
commit 2b0fd2e5c0

View file

@ -225,6 +225,10 @@ EOF
else
exec mc-server-runner ${mcServerRunnerArgs} "${finalArgs[@]}"
fi
elif [[ -x run.sh ]]; then
log "Using Forge supplied run.sh script..."
echo $JVM_XX_OPTS $JVM_OPTS $expandedDOpts > user_jvm_args.txt
exec mc-server-runner ${mcServerRunnerArgs} --shell bash run.sh
else
# If we have a bootstrap.txt file... feed that in to the server stdin
if [ -f /data/bootstrap.txt ]; then