mirror of
https://github.com/ViaVersion/ViaVersion.git
synced 2024-11-28 21:15:51 +01:00
Add entity id to painting items
This commit is contained in:
parent
9b1c97919c
commit
94e853e5cf
@ -439,9 +439,13 @@ public final class BlockItemPacketRewriter1_20_5 extends ItemRewriter<Clientboun
|
|||||||
updateBlockState(data, blockState);
|
updateBlockState(data, blockState);
|
||||||
}
|
}
|
||||||
|
|
||||||
final CompoundTag entityTag = tag.getCompoundTag("EntityTag");
|
CompoundTag entityTag = tag.getCompoundTag("EntityTag");
|
||||||
if (entityTag != null) {
|
if (entityTag != null) {
|
||||||
data.set(StructuredDataKey.ENTITY_DATA, entityTag.copy());
|
entityTag = entityTag.copy();
|
||||||
|
if (entityTag.contains("variant")) {
|
||||||
|
entityTag.putString("id", "minecraft:painting");
|
||||||
|
}
|
||||||
|
data.set(StructuredDataKey.ENTITY_DATA, entityTag);
|
||||||
}
|
}
|
||||||
|
|
||||||
final CompoundTag blockEntityTag = tag.getCompoundTag("BlockEntityTag");
|
final CompoundTag blockEntityTag = tag.getCompoundTag("BlockEntityTag");
|
||||||
|
Loading…
Reference in New Issue
Block a user