diff --git a/start-minecraftFinalSetup b/start-minecraftFinalSetup index 0b4b1f40..d848c6d4 100644 --- a/start-minecraftFinalSetup +++ b/start-minecraftFinalSetup @@ -105,7 +105,7 @@ EOF # patch CurseForge cfg file, if present if [ -f "${FTB_DIR}/settings.cfg" ]; then - sed -i "/MAX_RAM=.*/ c MAX_RAM=${MAX_MEMORY};" "${FTB_DIR}/settings.cfg" + sed -i "s/MAX_RAM=[^;]*/MAX_RAM=${MAX_MEMORY}/" "${FTB_DIR}/settings.cfg" fi cd "${FTB_DIR}"