Skip to content
Permalink
Browse files

herpederp

  • Loading branch information...
dries007 committed Oct 14, 2014
1 parent f14f006 commit e1eb0ca22b57caab0d50e47b0b05d65226bd294f
Showing with 4 additions and 3 deletions.
  1. +4 −3 src/main/java/net/doubledoordev/backend/server/Server.java
@@ -268,7 +268,7 @@ public void saveProperties()

private void normalizeProperties()
{
if (!Settings.SETTINGS.fixedPorts)
if (Settings.SETTINGS.fixedPorts)
{
properties.setProperty(SERVER_PORT, String.valueOf(data.serverPort));
properties.setProperty(QUERY_PORT, String.valueOf(data.serverPort));
@@ -279,10 +279,10 @@ private void normalizeProperties()
properties.setProperty(QUERY_PORT, String.valueOf(data.serverPort));
}

if (!Settings.SETTINGS.fixedIP) properties.setProperty(SERVER_IP, data.ip);
if (Settings.SETTINGS.fixedIP) properties.setProperty(SERVER_IP, data.ip);
else data.ip = properties.getProperty(SERVER_IP, data.ip);

if (!Settings.SETTINGS.fixedPorts) properties.setProperty(RCON_PORT, String.valueOf(data.rconPort));
if (Settings.SETTINGS.fixedPorts) properties.setProperty(RCON_PORT, String.valueOf(data.rconPort));
else data.rconPort = Integer.parseInt(properties.getProperty(RCON_PORT, String.valueOf(data.rconPort)));

properties.put(RCON_ENABLE, "true");
@@ -805,6 +805,7 @@ public void run()
ProcessBuilder pb = new ProcessBuilder(arguments);
pb.directory(folder);
pb.redirectErrorStream(true);
if (!new File(folder, data.jarName).exists()) return; // for reasons of WTF?
process = pb.start();
new Thread(new Runnable()
{

0 comments on commit e1eb0ca

Please sign in to comment.
You can’t perform that action at this time.