From 10eba951fd4b9c08e4097c5e0c7123fd0fc7682a Mon Sep 17 00:00:00 2001 From: Nathan M Date: Fri, 30 Oct 2020 03:30:33 -0400 Subject: [PATCH] Fix Armor Stand Metadata --- .../server/entity/type/decoration/EntityArmorStand.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/java/net/minestom/server/entity/type/decoration/EntityArmorStand.java b/src/main/java/net/minestom/server/entity/type/decoration/EntityArmorStand.java index 4245cae4a..5c7c11e98 100644 --- a/src/main/java/net/minestom/server/entity/type/decoration/EntityArmorStand.java +++ b/src/main/java/net/minestom/server/entity/type/decoration/EntityArmorStand.java @@ -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);