headerid -> short

This commit is contained in:
sirjonasxx 2020-12-27 22:19:50 +01:00
parent 7c840ae98a
commit 6b9e3451e0

View File

@ -37,7 +37,7 @@ public class HPacket implements StringifyAble {
} }
public HPacket(int header) { public HPacket(int header) {
packetInBytes = new byte[]{0,0,0,2,0,0}; packetInBytes = new byte[]{0,0,0,2,0,0};
replaceUShort(4, header); replaceShort(4, (short)header);
isEdited = false; isEdited = false;
} }
public HPacket(int header, byte[] bytes) { public HPacket(int header, byte[] bytes) {
@ -127,7 +127,7 @@ public class HPacket implements StringifyAble {
} }
public int headerId() { public int headerId() {
return readUshort(4); return readShort(4);
} }
public int readInteger(){ public int readInteger(){