Skip to content

Commit

Permalink
Make config channel optional on NeoForge (#749)
Browse files Browse the repository at this point in the history
  • Loading branch information
Rakambda authored Sep 1, 2024
1 parent c463cd0 commit ca0ad4a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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()));
Expand Down

0 comments on commit ca0ad4a

Please sign in to comment.