From d80231eef0306f0d113a285e65015eec85c32c3d Mon Sep 17 00:00:00 2001 From: MagicBot Date: Sun, 31 Mar 2024 11:20:32 -0400 Subject: [PATCH] Handler update. --- src/engine/net/client/Protocol.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/engine/net/client/Protocol.java b/src/engine/net/client/Protocol.java index d32a42ec..2ac3bad2 100644 --- a/src/engine/net/client/Protocol.java +++ b/src/engine/net/client/Protocol.java @@ -291,9 +291,11 @@ public enum Protocol { if (msg == null) return false; + Protocol protocol = null; + try { - Protocol protocol = msg.getProtocolMsg(); + protocol = msg.getProtocolMsg(); // Unhandled opcode @@ -308,7 +310,7 @@ public enum Protocol { protocol.handler.handleNetMsg(msg); } catch (Exception e) { - Logger.error("handler for " + msg.getProtocolMsg() + " failed: " + e); + Logger.error("handler for " + protocol + " failed: " + e); return false; }