Compare commits

...

2 Commits

Author SHA1 Message Date
MagicBot adfbf87056 Handler update. 2024-03-31 11:22:22 -04:00
MagicBot d80231eef0 Handler update. 2024-03-31 11:20:32 -04:00
+8 -2
View File
@@ -288,12 +288,18 @@ public enum Protocol {
public static boolean handleClientMsg(ClientNetMsg msg) {
// Main message handler for Magicbane. All messages
// incoming from the client are executed here for
// both the login and world servers.
if (msg == null)
return false;
Protocol protocol = null;
try {
Protocol protocol = msg.getProtocolMsg();
protocol = msg.getProtocolMsg();
// Unhandled opcode
@@ -308,7 +314,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;
}