Browse Source

Protocol handler code update

combat-2
MagicBot 8 months ago
parent
commit
7acaccc77d
  1. 6
      src/engine/net/client/Protocol.java

6
src/engine/net/client/Protocol.java

@ -300,13 +300,13 @@ public enum Protocol { @@ -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;

Loading…
Cancel
Save