mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-07-09 15:27:45 +07:00
Fixed many network-related bugs
This commit is contained in:
@ -5,6 +5,7 @@ import io.anuke.kryonet.KryoClient;
|
||||
import io.anuke.kryonet.KryoServer;
|
||||
import io.anuke.mindustry.MindustryServer;
|
||||
import io.anuke.mindustry.net.Net;
|
||||
import io.anuke.ucore.util.Log;
|
||||
|
||||
public class ServerLauncher{
|
||||
|
||||
@ -13,6 +14,18 @@ public class ServerLauncher{
|
||||
Net.setClientProvider(new KryoClient());
|
||||
Net.setServerProvider(new KryoServer());
|
||||
|
||||
new HeadlessApplication(new MindustryServer());
|
||||
new HeadlessApplication(new MindustryServer()){
|
||||
@Override
|
||||
public boolean executeRunnables() {
|
||||
try {
|
||||
return super.executeRunnables();
|
||||
}catch(Throwable e) {
|
||||
Log.err(e);
|
||||
System.exit(-1);
|
||||
return false;
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user