mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-20 18:09:44 +00:00
Remove PacketHandlerClient
This commit is contained in:
1 parent
43b0e7c23b
commit
c3179b36f2
30 files changed
+238
-396
No files matched your search
@@ -34,6 +34,10 @@ public class PacketChannel {
|
||||
}
|
||||
|
||||
public void registerPacket(AbstractPacket packet) {
|
||||
if(packets.containsKey(packet.getType().ordinal())){
|
||||
System.out.println("Packet ID: " + packet.getType().ordinal() + " is already registered in " + this.channelName);
|
||||
return;
|
||||
}
|
||||
this.packets.put(packet.getType().ordinal(), packet);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user