Various multiplayer tweaks
This commit is contained in:
@@ -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{
|
||||
|
||||
@@ -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){
|
||||
|
||||
Reference in New Issue
Block a user