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