mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-07-29 22:27:54 +07:00
Fixed bug with gameOver not being called properly
This commit is contained in:
@ -17,7 +17,10 @@ public class ServerLauncher{
|
||||
//find and handle uncaught exceptions in libGDX thread
|
||||
for(Thread thread : Thread.getAllStackTraces().keySet()){
|
||||
if(thread.getName().equals("HeadlessApplication")){
|
||||
thread.setUncaughtExceptionHandler((t, throwable) -> System.exit(-1));
|
||||
thread.setUncaughtExceptionHandler((t, throwable) ->{
|
||||
throwable.printStackTrace();
|
||||
System.exit(-1);
|
||||
});
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user