3
0
Mirror von https://github.com/ViaVersion/ViaVersion.git synchronisiert 2024-10-03 08:41:05 +02:00

Add entity id to painting items

Dieser Commit ist enthalten in:
Nassim Jahnke 2024-05-22 10:40:43 +02:00
Ursprung 9b1c97919c
Commit 94e853e5cf
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: EF6771C01F6EF02F

Datei anzeigen

@ -439,9 +439,13 @@ public final class BlockItemPacketRewriter1_20_5 extends ItemRewriter<Clientboun
updateBlockState(data, blockState);
}
final CompoundTag entityTag = tag.getCompoundTag("EntityTag");
CompoundTag entityTag = tag.getCompoundTag("EntityTag");
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");