Excludes proxies when adding garbage collector flags
All checks were successful
KnarCraft/Minecraft-Server-Launcher/pipeline/head This commit looks good

This commit is contained in:
Kristian Knarvik 2022-02-10 01:51:47 +01:00
parent c3ea85c20b
commit b808d48bd3

View File

@ -440,7 +440,7 @@ public class Server {
processArguments.add(getJavaCommand()); processArguments.add(getJavaCommand());
processArguments.add("-Xmx" + this.maxRam); processArguments.add("-Xmx" + this.maxRam);
processArguments.add("-Xms512M"); processArguments.add("-Xms512M");
if (versionAtLeast("1.8")) { if (versionAtLeast("1.8") && !getType().isProxy()) {
addGarbageCollectorFlags(processArguments); addGarbageCollectorFlags(processArguments);
} }
processArguments.add("-Djline.terminal=jline.UnsupportedTerminal"); processArguments.add("-Djline.terminal=jline.UnsupportedTerminal");