Browse Source

Handler update.

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

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

@ -291,9 +291,11 @@ public enum Protocol { @@ -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 { @@ -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;
}

Loading…
Cancel
Save