mirror of
https://github.com/GeyserMC/Geyser.git
synced 2024-08-14 23:57:35 +00:00
test unfinist
This commit is contained in:
parent
433ba8ae53
commit
5b3250f907
2 changed files with 6 additions and 2 deletions
|
|
@ -175,12 +175,12 @@ public class Entity {
|
||||||
byte xd = (byte) entityMetadata.getValue();
|
byte xd = (byte) entityMetadata.getValue();
|
||||||
metadata.getFlags().setFlag(EntityFlag.ON_FIRE, (xd & 0x00) == 0x00);
|
metadata.getFlags().setFlag(EntityFlag.ON_FIRE, (xd & 0x00) == 0x00);
|
||||||
metadata.getFlags().setFlag(EntityFlag.SNEAKING, (xd & 0x01) == 0x01);
|
metadata.getFlags().setFlag(EntityFlag.SNEAKING, (xd & 0x01) == 0x01);
|
||||||
metadata.getFlags().setFlag(EntityFlag.RIDING, (xd & 0x02) == 0x02);
|
|
||||||
metadata.getFlags().setFlag(EntityFlag.SPRINTING, (xd & 0x03) == 0x03);
|
metadata.getFlags().setFlag(EntityFlag.SPRINTING, (xd & 0x03) == 0x03);
|
||||||
metadata.getFlags().setFlag(EntityFlag.SWIMMING, (xd & 0x56) == 0x56);
|
metadata.getFlags().setFlag(EntityFlag.SWIMMING, (xd & 0x56) == 0x56);
|
||||||
metadata.getFlags().setFlag(EntityFlag.GLIDING, (xd & 0x32) == 0x32);
|
metadata.getFlags().setFlag(EntityFlag.GLIDING, (xd & 0x32) == 0x32);
|
||||||
metadata.getFlags().setFlag(EntityFlag.BLOCKING, (xd & 0x71) == 0x71);
|
metadata.getFlags().setFlag(EntityFlag.BLOCKING, (xd & 0x71) == 0x71);
|
||||||
metadata.getFlags().setFlag(EntityFlag.DISABLE_BLOCKING, (xd & 0x72) == 0x72);
|
metadata.getFlags().setFlag(EntityFlag.DISABLE_BLOCKING, (xd & 0x72) == 0x72);
|
||||||
|
metadata.getFlags().setFlag(EntityFlag.RIDING, (xd & 0x02) == 0x02);
|
||||||
metadata.getFlags().setFlag(EntityFlag.INVISIBLE, (xd & 0x05) == 0x05);
|
metadata.getFlags().setFlag(EntityFlag.INVISIBLE, (xd & 0x05) == 0x05);
|
||||||
if ((xd & 0x05) == 0x05)
|
if ((xd & 0x05) == 0x05)
|
||||||
metadata.put(EntityData.SCALE, 0.01f);
|
metadata.put(EntityData.SCALE, 0.01f);
|
||||||
|
|
|
||||||
|
|
@ -104,7 +104,11 @@ public class BedrockActionTranslator extends PacketTranslator<PlayerActionPacket
|
||||||
break;
|
break;
|
||||||
case STOP_BREAK:
|
case STOP_BREAK:
|
||||||
// Handled in BedrockInventoryTransactionTranslator
|
// Handled in BedrockInventoryTransactionTranslator
|
||||||
break;
|
break;
|
||||||
|
// case START_BLOCKING:
|
||||||
|
// break;
|
||||||
|
// case STOP_BLOCKING:
|
||||||
|
// break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue