Add armor stand entity id to ENTITY_DATA in 1.20.3->.5 (#3930)

Closes https://github.com/ViaVersion/ViaVersion/issues/3929
This commit is contained in:
EnZaXD 2024-06-12 18:02:24 +02:00 committed by GitHub
parent ae3042074e
commit 01ea51e8ee
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -452,6 +452,8 @@ public final class BlockItemPacketRewriter1_20_5 extends ItemRewriter<Clientboun
entityTag = entityTag.copy();
if (entityTag.contains("variant")) {
entityTag.putString("id", "minecraft:painting");
} else if (entityTag.contains("ShowArms")) {
entityTag.putString("id", "minecraft:armor_stand");
}
data.set(StructuredDataKey.ENTITY_DATA, entityTag);
}