mirror of
https://github.com/Anuken/Mindustry.git
synced 2026-01-17 23:02:26 -08:00
Implemented local server configs
This commit is contained in:
parent
ca5db2bff8
commit
6a5bf08d55
3 changed files with 5 additions and 5 deletions
|
|
@ -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){
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue