From 7acaccc77d00585f6d86dc2f6eb27d6107d2db9e Mon Sep 17 00:00:00 2001 From: MagicBot Date: Sun, 31 Mar 2024 10:54:33 -0400 Subject: [PATCH] Protocol handler code update --- src/engine/net/client/Protocol.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/engine/net/client/Protocol.java b/src/engine/net/client/Protocol.java index 4a8c08cf..d32a42ec 100644 --- a/src/engine/net/client/Protocol.java +++ b/src/engine/net/client/Protocol.java @@ -300,13 +300,13 @@ public enum Protocol { if (protocol == null) return true; - AbstractClientMsgHandler msgHandler = protocol.handler; - // Eat this message; no or empty handler - if (msgHandler == null) + if (protocol.handler == null) return true; + protocol.handler.handleNetMsg(msg); + } catch (Exception e) { Logger.error("handler for " + msg.getProtocolMsg() + " failed: " + e); return false;