diff --git a/command/neo/src/main/java/band/kessoku/lib/impl/command/neoforge/KessokuCommandNeoforge.java b/command/neo/src/main/java/band/kessoku/lib/impl/command/neoforge/KessokuCommandNeoforge.java index add05630..7bd2571b 100644 --- a/command/neo/src/main/java/band/kessoku/lib/impl/command/neoforge/KessokuCommandNeoforge.java +++ b/command/neo/src/main/java/band/kessoku/lib/impl/command/neoforge/KessokuCommandNeoforge.java @@ -19,6 +19,7 @@ import band.kessoku.lib.command.KessokuCommand; import net.neoforged.fml.common.Mod; +import net.neoforged.fml.loading.FMLLoader; import net.neoforged.neoforge.common.NeoForge; @Mod(KessokuCommand.MOD_ID) @@ -27,6 +28,8 @@ public KessokuCommandNeoforge() { var forgeEventBus = NeoForge.EVENT_BUS; KessokuLib.loadModule(KessokuCommand.class); KessokuCommandImpl.registerCommonEvents(forgeEventBus); - KessokuCommandImpl.registerClientEvents(forgeEventBus); + if (FMLLoader.getDist().isClient()) { + KessokuCommandImpl.registerClientEvents(forgeEventBus); + } } }