Fix not creating config

Dieser Commit ist enthalten in:
Chaoscaot 2022-10-01 13:32:29 +02:00
Ursprung 6832e762d4
Commit 65bef9f2b6

Datei anzeigen

@ -22,6 +22,7 @@ public class ServerConfig {
static { static {
if(!new File(FabricLoader.getInstance().getConfigDir().toFile(), CONFIG_FILE_NAME).exists()) { if(!new File(FabricLoader.getInstance().getConfigDir().toFile(), CONFIG_FILE_NAME).exists()) {
INSTANCE = new ServerConfig(); INSTANCE = new ServerConfig();
INSTANCE.save();
} else { } else {
try { try {
INSTANCE = AltAuth.GSON.fromJson(Files.readString(FabricLoader.getInstance().getConfigDir().resolve(CONFIG_FILE_NAME)), ServerConfig.class); INSTANCE = AltAuth.GSON.fromJson(Files.readString(FabricLoader.getInstance().getConfigDir().resolve(CONFIG_FILE_NAME)), ServerConfig.class);