Mirror von
https://github.com/ViaVersion/ViaVersion.git
synchronisiert 2024-12-26 08:10:09 +01:00
Add entity id to painting items
Dieser Commit ist enthalten in:
Ursprung
9b1c97919c
Commit
94e853e5cf
@ -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");
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren