From bbe1e4eed41d48718fe2dacc0a8b5ad8c0381403 Mon Sep 17 00:00:00 2001 From: Thomas <1688389+Rakambda@users.noreply.github.com> Date: Fri, 15 Dec 2023 22:32:06 +0100 Subject: [PATCH] Fix connection (#647) --- .../rakambda/fallingtree/forge/network/ForgePacketHandler.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/forge/src/main/java/fr/rakambda/fallingtree/forge/network/ForgePacketHandler.java b/forge/src/main/java/fr/rakambda/fallingtree/forge/network/ForgePacketHandler.java index 4f1b6071..f9af6995 100644 --- a/forge/src/main/java/fr/rakambda/fallingtree/forge/network/ForgePacketHandler.java +++ b/forge/src/main/java/fr/rakambda/fallingtree/forge/network/ForgePacketHandler.java @@ -33,7 +33,7 @@ public class ForgePacketHandler implements ClientPacketHandler, ServerPacketHand public static final SimpleChannel INSTANCE = NetworkRegistry.newSimpleChannel( new ResourceLocation(FallingTree.MOD_ID, "main"), () -> PROTOCOL_VERSION, - PROTOCOL_VERSION::equals, + NetworkRegistry.acceptMissingOr(PROTOCOL_VERSION), v -> ALLOWED_VERSIONS.stream().anyMatch(v::equals) );