From e1d1b062f8fc5b18f3ae83b381396a3970304953 Mon Sep 17 00:00:00 2001 From: Paul Fulham Date: Sat, 21 Nov 2020 18:20:49 -0800 Subject: [PATCH] Enforce network version --- .../com/simibubi/create/foundation/networking/AllPackets.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/simibubi/create/foundation/networking/AllPackets.java b/src/main/java/com/simibubi/create/foundation/networking/AllPackets.java index f7c6ed4af..8bb4a5f83 100644 --- a/src/main/java/com/simibubi/create/foundation/networking/AllPackets.java +++ b/src/main/java/com/simibubi/create/foundation/networking/AllPackets.java @@ -93,8 +93,8 @@ public enum AllPackets { public static void registerPackets() { channel = NetworkRegistry.ChannelBuilder.named(CHANNEL_NAME) - .serverAcceptedVersions(s -> true) - .clientAcceptedVersions(s -> true) + .serverAcceptedVersions(NETWORK_VERSION::equals) + .clientAcceptedVersions(NETWORK_VERSION::equals) .networkProtocolVersion(() -> NETWORK_VERSION) .simpleChannel(); for (AllPackets packet : values())