From 85cd3e046e3679761c79c5e16472aa01b7a5bc6c Mon Sep 17 00:00:00 2001 From: Marc Hermans Date: Mon, 13 Nov 2023 23:47:23 +0100 Subject: [PATCH] Add a check during network negotiation that ensures that both sides have the same enforced packetflow. --- .../negotiation/NetworkComponentNegotiator.java | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/main/java/net/neoforged/neoforge/network/negotiation/NetworkComponentNegotiator.java b/src/main/java/net/neoforged/neoforge/network/negotiation/NetworkComponentNegotiator.java index a99875ab59d..6b512592a21 100644 --- a/src/main/java/net/neoforged/neoforge/network/negotiation/NetworkComponentNegotiator.java +++ b/src/main/java/net/neoforged/neoforge/network/negotiation/NetworkComponentNegotiator.java @@ -29,6 +29,7 @@ public class NetworkComponentNegotiator { *
  • If the server has none optional components that are not present on the client, then negotiation fails
  • *
  • For each of the matching channels the following is executed:
  • *