#45 Fix problematic exception handling

This commit is contained in:
ME1312 2019-05-31 15:20:17 -04:00
parent 071e0bceab
commit 96a0624b28
No known key found for this signature in database
GPG Key ID: FEFFE2F698E88FA8
7 changed files with 15 additions and 10 deletions

View File

@ -30,13 +30,13 @@
<dependency>
<groupId>net.ME1312.Galaxi</groupId>
<artifactId>GalaxiUtil</artifactId>
<version>19w22a</version>
<version>19w22b</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>net.ME1312.Galaxi</groupId>
<artifactId>GalaxiEngine</artifactId>
<version>19w22a</version>
<version>19w22b</version>
<scope>provided</scope>
</dependency>
<dependency>

View File

@ -48,7 +48,7 @@
<dependency>
<groupId>net.ME1312.Galaxi</groupId>
<artifactId>GalaxiUtil</artifactId>
<version>19w22a</version>
<version>19w22b</version>
<scope>compile</scope>
</dependency>
<dependency>

View File

@ -30,7 +30,7 @@
<dependency>
<groupId>net.ME1312.Galaxi</groupId>
<artifactId>GalaxiUtil</artifactId>
<version>19w22a</version>
<version>19w22b</version>
<scope>compile</scope>
</dependency>
<dependency>

View File

@ -7,4 +7,4 @@ Template:
Require-Version: true
Executable: 'bash build.sh'
Settings:
Executable: 'java -Xmx1024M -Dorg.bukkit.craftbukkit.libs.jline.terminal=unix -Djansi.passthrough=true -jar Spigot.jar -p $port$'
Executable: 'java -Xmx1024M -Dorg.bukkit.craftbukkit.libs.jline.terminal=unix -Djansi.passthrough=true -jar Spigot.jar'

View File

@ -20,7 +20,7 @@
<dependency>
<groupId>net.ME1312.Galaxi</groupId>
<artifactId>GalaxiEngine</artifactId>
<version>19w22a</version>
<version>19w22b</version>
<scope>compile</scope>
</dependency>
<dependency>

View File

@ -227,8 +227,13 @@ public final class ExHost {
log.warn.println("UPnP is currently unavailable; Ports may not be automatically forwarded on this device");
}
} catch (Exception e) {
log.error.println(e);
engine.stop(1);
if (engine == null) {
e.printStackTrace();
System.exit(1);
} else {
log.error.println(e);
engine.stop(1);
}
}
}

View File

@ -30,13 +30,13 @@
<dependency>
<groupId>net.ME1312.Galaxi</groupId>
<artifactId>GalaxiUtil</artifactId>
<version>19w22a</version>
<version>19w22b</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>net.ME1312.Galaxi</groupId>
<artifactId>GalaxiEngine</artifactId>
<version>19w22a</version>
<version>19w22b</version>
<scope>provided</scope>
</dependency>
<dependency>