Project cleanup pre merge.

This commit is contained in:
2023-07-15 09:23:48 -04:00
parent 134b651df8
commit 9bbdef224d
747 changed files with 99704 additions and 101200 deletions
+2 -3
View File
@@ -252,9 +252,10 @@ public enum Protocol {
UNKNOWN1(-263523523, Unknown1Msg.class, null),
DROPGOLD(1461654160, DropGoldMsg.class, null);
public int opcode;
private static final HashMap<Integer, Protocol> _protocolMsgByOpcode = new HashMap<>();
private final Class message;
private final Class handlerClass;
public int opcode;
public Constructor constructor;
public AbstractClientMsgHandler handler;
@@ -286,8 +287,6 @@ public enum Protocol {
}
}
private static final HashMap<Integer, Protocol> _protocolMsgByOpcode = new HashMap<>();
public static Protocol getByOpcode(int opcode) {
Protocol protocol = _protocolMsgByOpcode.get(opcode);