Various multiplayer tweaks

This commit is contained in:
Anuken
2018-02-03 12:20:36 -05:00
parent 608343b9d1
commit a31c4b273d
9 changed files with 82 additions and 26 deletions

View File

@@ -15,7 +15,7 @@ import static io.anuke.mindustry.Vars.headless;
import static io.anuke.mindustry.Vars.playerGroup;
public class KryoRegistrator {
public static boolean fakeLag = false;
public static boolean fakeLag = true;
public static final int fakeLagAmount = 500;
static{

View File

@@ -293,6 +293,13 @@ public class KryoServer implements ServerProvider {
Log.err(e);
}
Log.info("Disposed server.");
for(Thread thread : Thread.getAllStackTraces().keySet()){
if(!thread.isDaemon()){
Log.info(thread.toString());
thread.interrupt();
}
}
}
private void handleException(Throwable e){