forked from MagicBane/Server
Migration to protocol class
This commit is contained in:
@@ -8,8 +8,8 @@
|
||||
|
||||
package engine.net;
|
||||
|
||||
import engine.gameManager.ConfigManager;
|
||||
import engine.job.AbstractJob;
|
||||
import engine.net.client.Protocol;
|
||||
import engine.net.client.msg.ClientNetMsg;
|
||||
import org.pmw.tinylog.Logger;
|
||||
|
||||
@@ -40,7 +40,7 @@ public class CheckNetMsgFactoryJob extends AbstractJob {
|
||||
}
|
||||
|
||||
if (msg instanceof engine.net.client.msg.ClientNetMsg) {
|
||||
ConfigManager.handler.handleClientMsg((ClientNetMsg) msg);
|
||||
Protocol.handleClientMsg((ClientNetMsg) msg);
|
||||
|
||||
} else {
|
||||
Logger.error("Unrouteable message of type '" + msg.getClass().getSimpleName() + '\'');
|
||||
|
||||
Reference in New Issue
Block a user