diff --git a/Mage.Server/src/main/java/mage/server/Main.java b/Mage.Server/src/main/java/mage/server/Main.java index a559c287f5..dfe64ab26a 100644 --- a/Mage.Server/src/main/java/mage/server/Main.java +++ b/Mage.Server/src/main/java/mage/server/Main.java @@ -87,6 +87,10 @@ public final class Main { logger.info("Logging level: " + logger.getEffectiveLevel()); logger.info("Default charset: " + Charset.defaultCharset()); String adminPassword = ""; + + // enable test mode by default for developer build (if you run it from source code) + testMode |= version.isDeveloperBuild(); + for (String arg : args) { if (arg.startsWith(testModeArg)) { testMode = Boolean.parseBoolean(arg.replace(testModeArg, "")); @@ -98,9 +102,6 @@ public final class Main { } } - // enable test mode by default for developer build (if you run it from source code) - testMode |= version.isDeveloperBuild(); - final String configPath = Optional.ofNullable(System.getProperty(configPathProp)) .orElse(defaultConfigPath);