mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-07-30 06:37:50 +07:00
Fixed most main menu bugs
This commit is contained in:
@ -20,6 +20,7 @@ public class MindustryServer implements ApplicationListener{
|
||||
|
||||
@Override
|
||||
public void init(){
|
||||
Core.settings.setDataDirectory(Core.files.local("config"));
|
||||
Vars.init();
|
||||
|
||||
headless = true;
|
||||
|
@ -2,12 +2,11 @@ package io.anuke.mindustry.server;
|
||||
|
||||
|
||||
import io.anuke.arc.ApplicationListener;
|
||||
import io.anuke.arc.Core;
|
||||
import io.anuke.arc.backends.headless.HeadlessApplication;
|
||||
import io.anuke.arc.backends.headless.HeadlessApplicationConfiguration;
|
||||
import io.anuke.mindustry.net.Net;
|
||||
import io.anuke.net.KryoClient;
|
||||
import io.anuke.net.KryoServer;
|
||||
import io.anuke.mindustry.net.Net;
|
||||
|
||||
public class ServerLauncher extends HeadlessApplication{
|
||||
|
||||
@ -22,8 +21,6 @@ public class ServerLauncher extends HeadlessApplication{
|
||||
Net.setServerProvider(new KryoServer());
|
||||
|
||||
HeadlessApplicationConfiguration config = new HeadlessApplicationConfiguration();
|
||||
Core.settings.setDataDirectory(Core.files.local("config"));
|
||||
|
||||
new ServerLauncher(new MindustryServer(args), config);
|
||||
}catch(Throwable t){
|
||||
CrashHandler.handle(t);
|
||||
|
Reference in New Issue
Block a user