Skip to content

Commit

Permalink
Adapt run script to modern Java (#59)
Browse files Browse the repository at this point in the history
  • Loading branch information
calcastor authored Jun 25, 2024
1 parent 38146bb commit 4e8d30f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ JAVA_FLAGS="-XX:+UseZGC -XX:AllocatePrefetchStyle=1 -XX:+ZGenerational -XX:+Unlo

/minecraft/bin/downscaler.sh &

exec /minecraft/bin/mc-server-runner java $JAVA_FLAGS -XX:+UseCGroupMemoryLimitForHeap -XX:MaxRAMFraction=1 -Xms${MIN_MEMORY:-1G} -Xmx${MAX_MEMORY:-1G} -jar server.jar
exec /minecraft/bin/mc-server-runner java $JAVA_FLAGS -XX:+UseContainerSupport -XX:MaxRAMFraction=1 -Xms${MIN_MEMORY:-1G} -Xmx${MAX_MEMORY:-1G} -jar --add-opens java.base/java.lang.invoke=ALL-UNNAMED server.jar

0 comments on commit 4e8d30f

Please sign in to comment.