Use HexFormat for converting from bytes to hex string and the other way round
This commit is contained in:
@@ -64,7 +64,7 @@ public class PeCommand extends Command {
|
||||
|
||||
}
|
||||
|
||||
byte[] packetContent = HexTool.getByteArrayFromHexString(packet);
|
||||
byte[] packetContent = HexTool.toBytes(packet);
|
||||
InPacket inPacket = new ByteBufInPacket(Unpooled.wrappedBuffer(packetContent));
|
||||
short packetId = inPacket.readShort();
|
||||
final PacketHandler packetHandler = PacketProcessor.getProcessor(0, c.getChannel()).getHandler(packetId);
|
||||
|
||||
Reference in New Issue
Block a user