From b808d48bd32f5828248fc5e4cf78cf0af804506f Mon Sep 17 00:00:00 2001 From: EpicKnarvik97 Date: Thu, 10 Feb 2022 01:51:47 +0100 Subject: [PATCH] Excludes proxies when adding garbage collector flags --- .../net/knarcraft/minecraftserverlauncher/server/Server.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/net/knarcraft/minecraftserverlauncher/server/Server.java b/src/main/java/net/knarcraft/minecraftserverlauncher/server/Server.java index 445dbcb..92cafa3 100644 --- a/src/main/java/net/knarcraft/minecraftserverlauncher/server/Server.java +++ b/src/main/java/net/knarcraft/minecraftserverlauncher/server/Server.java @@ -440,7 +440,7 @@ public class Server { processArguments.add(getJavaCommand()); processArguments.add("-Xmx" + this.maxRam); processArguments.add("-Xms512M"); - if (versionAtLeast("1.8")) { + if (versionAtLeast("1.8") && !getType().isProxy()) { addGarbageCollectorFlags(processArguments); } processArguments.add("-Djline.terminal=jline.UnsupportedTerminal");