From 70ce25d158ca5d276c191c6b8a76bafd102c3e16 Mon Sep 17 00:00:00 2001 From: 3944Realms Date: Tue, 17 Feb 2026 08:26:03 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E5=85=BC=E5=AE=B9=E8=A7=A6?= =?UTF-8?q?=E5=8F=91=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/compat/CompatManager.java | 8 +------- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/gradle.properties b/gradle.properties index afdcc7f..c906f33 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.3.0 +mod_version=0.3.1 # 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/compat/CompatManager.java b/src/main/java/top/r3944realms/lib39/core/compat/CompatManager.java index cb1bcff..cdd2763 100644 --- a/src/main/java/top/r3944realms/lib39/core/compat/CompatManager.java +++ b/src/main/java/top/r3944realms/lib39/core/compat/CompatManager.java @@ -36,15 +36,9 @@ public abstract class CompatManager { protected void initialize() { modEventBus.addListener(this::onConstructMod); - modEventBus.addListener(this::onFMLCommonSetup); } private void onConstructMod(FMLConstructModEvent event) { - event.enqueueWork(() -> { - Lib39.LOGGER.info("[{}]: RegisterCompatEvent published during construct phase", this.getId()); - }); - } - private void onFMLCommonSetup(FMLCommonSetupEvent event) { event.enqueueWork(() -> { initializeAllCompat(); Lib39.LOGGER.info("[{}]: CompatManager initialized with {} modules", this.getId(), getLoadedCompats().size()); @@ -162,7 +156,7 @@ public abstract class CompatManager { pendingTasks.forEach(Runnable::run); pendingTasks.clear(); - // 1. 先初始化所有兼容模块 + // 初始化所有兼容模块 for (Map.Entry entry : compats.entrySet()) { try { entry.getValue().initialize();