mirror of
https://github.com/tiennm99/zfoo.git
synced 2026-05-21 10:26:32 +00:00
del[protocol]: deprecate protocolId() method
This commit is contained in:
@@ -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