mirror of
https://github.com/sirjonasxx/G-Earth.git
synced 2024-11-27 02:40:51 +01:00
headerid -> short
This commit is contained in:
parent
7c840ae98a
commit
6b9e3451e0
@ -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(){
|
||||||
|
Loading…
Reference in New Issue
Block a user