From b7ccf4b079a1a91a96b9e98dc2ae56b1cddfe488 Mon Sep 17 00:00:00 2001 From: BloodWorkXGaming Date: Tue, 5 Jun 2018 19:02:00 +0200 Subject: [PATCH] fixed start bug --- build.gradle | 2 +- .../java/atm/bloodworkxgaming/serverstarter/ForgeManager.java | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/build.gradle b/build.gradle index dc81f3f..d519661 100644 --- a/build.gradle +++ b/build.gradle @@ -5,7 +5,7 @@ plugins { } group = 'atm.bloodworkxgaming' -version = '1.2.2' +version = '1.2.3' sourceCompatibility = 1.8 diff --git a/src/main/java/atm/bloodworkxgaming/serverstarter/ForgeManager.java b/src/main/java/atm/bloodworkxgaming/serverstarter/ForgeManager.java index 9095721..25793a0 100644 --- a/src/main/java/atm/bloodworkxgaming/serverstarter/ForgeManager.java +++ b/src/main/java/atm/bloodworkxgaming/serverstarter/ForgeManager.java @@ -150,7 +150,9 @@ private void startServer() { List arguments = new ArrayList<>(); - arguments.add(configFile.launch.preJavaArgs); + if (configFile.launch.preJavaArgs != null && !configFile.launch.preJavaArgs.isEmpty()) + arguments.add(configFile.launch.preJavaArgs); + arguments.add("java"); arguments.addAll(configFile.launch.javaArgs); arguments.add("-Xmx" + configFile.launch.maxRam);