Skip to content

Commit

Permalink
Fix connection to vanilla servers
Browse files Browse the repository at this point in the history
  • Loading branch information
dima-dencep committed Aug 11, 2024
1 parent 9cd92c6 commit 4d13390
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ private <PAYLOAD extends CustomPacketPayload> NeoPayloadHandler<PAYLOAD> getOrRe
boolean setup = NetworkRegistryAccessor.getSetup();

NetworkRegistryAccessor.setSetup(false);
NetworkRegistry.register(type, (StreamCodec<? super FriendlyByteBuf, PAYLOAD>) DUMMY_CODEC, handler, List.of(protocol), Optional.empty(), "1.0", setup);
NetworkRegistry.register(type, (StreamCodec<? super FriendlyByteBuf, PAYLOAD>) DUMMY_CODEC, handler, List.of(protocol), Optional.empty(), "1.0", true);
NetworkRegistryAccessor.setSetup(setup);

// TODO Send registration message when registering late
Expand Down

0 comments on commit 4d13390

Please sign in to comment.