fix this parser stuff

This commit is contained in:
sirjonasxx 2020-05-16 01:44:32 +02:00
parent 764d0fbcbc
commit d12521a463
2 changed files with 7 additions and 2 deletions

View File

@ -35,6 +35,7 @@ public class HEntityUpdate {
switch(actionValues[0]) {
case "flatctrl":
isController = true;
this.action = HAction.None;
break;
case "mv":
String[] values = actionValues[1].split(",");

View File

@ -46,8 +46,7 @@ public class HFloorItem implements IFurni {
private void setStuffData(HPacket packet)
{
int kind = packet.readInteger();
switch(kind)
switch(category & 255)
{
case 0: // RegularFurni
packet.readString();
@ -103,6 +102,11 @@ public class HFloorItem implements IFurni {
packet.readInteger();
break;
}
if ((category & 0xFF00 & 0x100) > 0)
{
packet.readInteger();
packet.readInteger();
}
}
public static HFloorItem[] parse(HPacket packet) {