del[protocol]: deprecate protocolId() method

This commit is contained in:
godotg committed 2023-09-03 15:20:48 +08:00
1 parent da31160d60
commit 7c1f3ffdc0
11 files changed
+24 -26

No files matched your search

@@ -57,7 +57,7 @@ public class ProtocolManager {
* serialize the packet into the buffer
*/
public static void write(ByteBuf buffer, IPacket packet) {
var protocolId = packet.protocolId();
var protocolId = protocolId(packet.getClass());
// write the protocolId
ByteBufUtils.writeShort(buffer, protocolId);
// write the package