Implemented local server configs

This commit is contained in:
Anuken 2018-11-16 22:28:27 -05:00
parent ca5db2bff8
commit 6a5bf08d55
3 changed files with 5 additions and 5 deletions

View file

@ -7,8 +7,8 @@ import com.badlogic.gdx.backends.headless.HeadlessApplicationConfiguration;
import io.anuke.kryonet.KryoClient;
import io.anuke.kryonet.KryoServer;
import io.anuke.mindustry.net.Net;
import io.anuke.ucore.core.Settings;
import io.anuke.ucore.util.EmptyLogger;
import io.anuke.ucore.util.OS;
public class ServerLauncher extends HeadlessApplication{
@ -26,7 +26,7 @@ public class ServerLauncher extends HeadlessApplication{
Net.setServerProvider(new KryoServer());
HeadlessApplicationConfiguration config = new HeadlessApplicationConfiguration();
config.preferencesDirectory = OS.getAppDataDirectoryString("Mindustry");
Settings.setPrefHandler((appName) -> Gdx.files.local("config"));
new ServerLauncher(new MindustryServer(args), config);
}catch(Throwable t){