Fixed bug with gameOver not being called properly

This commit is contained in:
Anuken
2018-01-29 23:21:55 -05:00
parent aaa9f85206
commit 4b830a8cf2
6 changed files with 72 additions and 5 deletions

View File

@ -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;
}
}