Merge pull request #63 from hpfxd/armorstand-fix

Fix Armor Stand Metadata
This commit is contained in:
TheMode 2020-10-30 14:35:02 +01:00 committed by GitHub
commit 3b2f17c826
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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);