diff --git a/gradle.properties b/gradle.properties index 1f6c9f9..600cc89 100644 --- a/gradle.properties +++ b/gradle.properties @@ -33,7 +33,7 @@ mod_name=3944Realms 's Lib Mod # The license of the mod. Review your options at https://choosealicense.com/. All Rights Reserved is the default. mod_license=MIT # The mod version. See https://semver.org/ -mod_version=0.0.23 +mod_version=0.0.24 # 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/top/r3944realms/lib39/core/event/CommonEventHandler.java b/src/main/java/top/r3944realms/lib39/core/event/CommonEventHandler.java index 228a286..a5202cf 100644 --- a/src/main/java/top/r3944realms/lib39/core/event/CommonEventHandler.java +++ b/src/main/java/top/r3944realms/lib39/core/event/CommonEventHandler.java @@ -208,11 +208,12 @@ public class CommonEventHandler { IEventBus gameBus = MinecraftForge.EVENT_BUS; compatManager = new CompatManager(modBus, gameBus); + modBus.post(new RegisterCompatEvent(compatManager)); }); } @SubscribeEvent public static void onFMLComplete(FMLLoadCompleteEvent event) { - event.enqueueWork(()->MinecraftForge.EVENT_BUS.post(new RegisterCompatEvent(compatManager))); + event.enqueueWork(() -> compatManager.initializeAll()); }