From 442de8b8625915d8503533f039df686644b45ca5 Mon Sep 17 00:00:00 2001 From: apple502j <33279053+apple502j@users.noreply.github.com> Date: Fri, 22 Jul 2022 04:07:48 +0900 Subject: [PATCH] Fix incorrect check in GlobalReceiverRegistry (#2363) --- .../fabricmc/fabric/impl/networking/GlobalReceiverRegistry.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fabric-networking-api-v1/src/main/java/net/fabricmc/fabric/impl/networking/GlobalReceiverRegistry.java b/fabric-networking-api-v1/src/main/java/net/fabricmc/fabric/impl/networking/GlobalReceiverRegistry.java index a93fca984..c2518cc03 100644 --- a/fabric-networking-api-v1/src/main/java/net/fabricmc/fabric/impl/networking/GlobalReceiverRegistry.java +++ b/fabric-networking-api-v1/src/main/java/net/fabricmc/fabric/impl/networking/GlobalReceiverRegistry.java @@ -68,7 +68,7 @@ public final class GlobalReceiverRegistry { try { final boolean replaced = this.handlers.putIfAbsent(channelName, handler) == null; - if (!replaced) { + if (replaced) { this.handleRegistration(channelName, handler); }