diff --git a/gradle.properties b/gradle.properties index 771ae1a..7578974 100644 --- a/gradle.properties +++ b/gradle.properties @@ -53,7 +53,7 @@ mod_name=Zontreck's Library Mod # The license of the mod. Review your options at https://choosealicense.com/. All Rights Reserved is the default. mod_license=GPLv3 # The mod version. See https://semver.org/ -mod_version=1201.13.042324.2158 +mod_version=1201.13.042324.2223 # The group ID for the mod. It is only important when publishing as an artifact to a Maven repository. # This should match the base package used for the mod sources. # See https://maven.apache.org/guides/mini/guide-naming-conventions.html diff --git a/src/main/java/dev/zontreck/libzontreck/LibZontreck.java b/src/main/java/dev/zontreck/libzontreck/LibZontreck.java index 982e02d..d51f00b 100644 --- a/src/main/java/dev/zontreck/libzontreck/LibZontreck.java +++ b/src/main/java/dev/zontreck/libzontreck/LibZontreck.java @@ -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); diff --git a/src/main/java/dev/zontreck/libzontreck/config/ServerConfig.java b/src/main/java/dev/zontreck/libzontreck/config/ServerConfig.java index 3d0c3b8..4ef3755 100644 --- a/src/main/java/dev/zontreck/libzontreck/config/ServerConfig.java +++ b/src/main/java/dev/zontreck/libzontreck/config/ServerConfig.java @@ -22,6 +22,8 @@ public class ServerConfig database = DatabaseSection.deserialize(config.getCompound(DatabaseSection.TAG_NAME)); } else { database = new DatabaseSection(); + + commit(); } }