From e356628d5e4e8f203fb2d2e02ceebbf04b699cd3 Mon Sep 17 00:00:00 2001 From: 3944Realms Date: Fri, 2 Jan 2026 02:10:28 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E5=86=85=E5=AE=B9=201.=20?= =?UTF-8?q?=E4=BF=AE=E6=AD=A3=E5=85=BC=E5=AE=B9=E4=BA=8B=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- gradle.properties | 2 +- .../top/r3944realms/lib39/core/event/CommonEventHandler.java | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) 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()); }