mirror of
https://github.com/sirjonasxx/G-Earth.git
synced 2025-02-20 13:02:36 +01:00
fix this parser stuff
This commit is contained in:
parent
764d0fbcbc
commit
d12521a463
@ -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(",");
|
||||
|
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user