修正错误的加载

This commit is contained in:
叁玖领域 2026-02-17 15:23:50 +08:00
parent 0e737be16a
commit 32f9d315f3
2 changed files with 3 additions and 3 deletions

View File

@ -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.5
mod_version=0.3.6
# 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

View File

@ -223,9 +223,9 @@ public abstract class CompatManager {
});
case DEDICATED_SERVER -> DistExecutor.unsafeRunWhenOn(Dist.DEDICATED_SERVER,() -> () -> {
if (config.bus == Mod.EventBusSubscriber.Bus.FORGE) {
compat.addClientGameListener(gameEventBus);
compat.addServerGameListener(gameEventBus);
} else {
compat.addClientModListener(modEventBus);
compat.addServerModListener(modEventBus);
}
});
}