mirror of
https://github.com/Minestom/Minestom.git
synced 2024-09-19 10:11:06 +02:00
Merge pull request #63 from hpfxd/armorstand-fix
Fix Armor Stand Metadata
This commit is contained in:
commit
3b2f17c826
@ -95,13 +95,13 @@ public class EntityArmorStand extends ObjectEntity implements EquipmentHandler {
|
|||||||
packet.writeByte(METADATA_BYTE);
|
packet.writeByte(METADATA_BYTE);
|
||||||
byte dataValue = 0;
|
byte dataValue = 0;
|
||||||
if (isSmall())
|
if (isSmall())
|
||||||
dataValue += 1;
|
dataValue |= 0x01;
|
||||||
if (hasArms)
|
if (hasArms)
|
||||||
dataValue += 2;
|
dataValue |= 0x04;
|
||||||
if (hasNoBasePlate())
|
if (hasNoBasePlate())
|
||||||
dataValue += 4;
|
dataValue |= 0x08;
|
||||||
if (hasMarker())
|
if (hasMarker())
|
||||||
dataValue += 8;
|
dataValue |= 0x10;
|
||||||
packet.writeByte(dataValue);
|
packet.writeByte(dataValue);
|
||||||
} else if (index == 15) {
|
} else if (index == 15) {
|
||||||
packet.writeByte((byte) 15);
|
packet.writeByte((byte) 15);
|
||||||
|
Loading…
Reference in New Issue
Block a user