Settings file was not being initialized

This commit is contained in:
zontreck 2024-04-23 22:24:41 -07:00
parent 378f44b769
commit fe383b2973
3 changed files with 5 additions and 1 deletions

View file

@ -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);

View file

@ -22,6 +22,8 @@ public class ServerConfig
database = DatabaseSection.deserialize(config.getCompound(DatabaseSection.TAG_NAME));
} else {
database = new DatabaseSection();
commit();
}
}