nomisuffory/patches/server/launch.sh.patch

13 lines
432 B
Diff

--- launch.sh 2026-05-31 01:54:49.770122460 +0100
+++ launch.sh 2026-05-31 01:58:57.480121515 +0100
@@ -13,8 +13,8 @@
JAVA_PARAMETERS=''
# these you can edit
-MIN_RAM='2048M'
-MAX_RAM='2048M'
+MIN_RAM="${MC_MEMORY:-2048M}"
+MAX_RAM="${MC_MEMORY:-2048M}"
# DO NOT EDIT ANYTHING PAST THIS LINE
LAUNCHPARAMS="-server -Xms$MIN_RAM -Xmx$MAX_RAM $JAVA_PARAMETERS -Dlog4j.configurationFile=log4j2_112-116.xml -jar $FORGEJAR nogui"