Settings file was not being initialized
This commit is contained in:
parent
378f44b769
commit
fe383b2973
3 changed files with 5 additions and 1 deletions
|
@ -85,6 +85,8 @@ public class LibZontreck {
|
|||
IEventBus bus = FMLJavaModLoadingContext.get().getModEventBus();
|
||||
// Register the setup method for modloading
|
||||
bus.addListener(this::setup);
|
||||
|
||||
ServerConfig.init();
|
||||
|
||||
|
||||
MinecraftForge.EVENT_BUS.register(this);
|
||||
|
|
|
@ -22,6 +22,8 @@ public class ServerConfig
|
|||
database = DatabaseSection.deserialize(config.getCompound(DatabaseSection.TAG_NAME));
|
||||
} else {
|
||||
database = new DatabaseSection();
|
||||
|
||||
commit();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Reference in a new issue