Fix Armor Stand Metadata

This commit is contained in:
Nathan M 2020-10-30 03:30:33 -04:00
parent 872dccd7ce
commit 10eba951fd
No known key found for this signature in database
GPG Key ID: 13E50B2F7A53CDC3

View File

@ -95,13 +95,13 @@ public class EntityArmorStand extends ObjectEntity implements EquipmentHandler {
packet.writeByte(METADATA_BYTE);
byte dataValue = 0;
if (isSmall())
dataValue += 1;
dataValue |= 0x01;
if (hasArms)
dataValue += 2;
dataValue |= 0x04;
if (hasNoBasePlate())
dataValue += 4;
dataValue |= 0x08;
if (hasMarker())
dataValue += 8;
dataValue |= 0x10;
packet.writeByte(dataValue);
} else if (index == 15) {
packet.writeByte((byte) 15);