mirror of
https://github.com/tiennm99/zfoo.git
synced 2026-10-10 00:16:56 +00:00
del[protocol]: deprecate protocolId() method
This commit is contained in:
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
|
||||
|
||||
Reference in new issue
Block a user