diff --git a/neoforge/src/main/java/fr/rakambda/fallingtree/neoforge/network/NeoForgePacketHandler.java b/neoforge/src/main/java/fr/rakambda/fallingtree/neoforge/network/NeoForgePacketHandler.java index 9f114313..db3e99af 100644 --- a/neoforge/src/main/java/fr/rakambda/fallingtree/neoforge/network/NeoForgePacketHandler.java +++ b/neoforge/src/main/java/fr/rakambda/fallingtree/neoforge/network/NeoForgePacketHandler.java @@ -13,7 +13,7 @@ public class NeoForgePacketHandler implements ClientPacketHandler, ServerPacketHandler{ @SubscribeEvent public void register(@NotNull RegisterPayloadHandlersEvent event){ - var registrar = event.registrar(FallingTree.MOD_ID); + var registrar = event.registrar(FallingTree.MOD_ID).optional(); registrar.configurationToClient(FallingTreeConfigPacket.TYPE, FallingTreeConfigPacket.CODEC, (packet, sender) -> mod.getPacketUtils().onClientConfigurationPacket(packet.getPacket()));