Packet sending during Netty migration

This commit is contained in:
P0nk
2021-06-25 14:43:05 +02:00
parent 80cacd609a
commit f6aca2018e
3 changed files with 35 additions and 4 deletions

View File

@@ -12,6 +12,11 @@ import java.awt.*;
public class ByteBufOutPacket implements OutPacket {
private final ByteBuf byteBuf;
@Deprecated(forRemoval = true)
public ByteBufOutPacket() {
this.byteBuf = Unpooled.buffer();
}
public ByteBufOutPacket(SendOpcode op) {
ByteBuf byteBuf = Unpooled.buffer();
byteBuf.writeShortLE((short) op.getValue());