Mirror von
https://github.com/ViaVersion/ViaVersion.git
synchronisiert 2024-12-27 08:30:09 +01:00
Don't add block entity tag if the id is missing
Dieser Commit ist enthalten in:
Ursprung
6bae039d52
Commit
619eecacf8
@ -488,7 +488,11 @@ public final class BlockItemPacketRewriter1_20_5 extends ItemRewriter<Clientboun
|
|||||||
if (blockEntityTag != null) {
|
if (blockEntityTag != null) {
|
||||||
final CompoundTag clonedTag = blockEntityTag.copy();
|
final CompoundTag clonedTag = blockEntityTag.copy();
|
||||||
updateBlockEntityTag(connection, data, clonedTag);
|
updateBlockEntityTag(connection, data, clonedTag);
|
||||||
item.dataContainer().set(StructuredDataKey.BLOCK_ENTITY_DATA, clonedTag);
|
|
||||||
|
// Not always needed, e.g. shields that had the base color in a block entity tag before
|
||||||
|
if (blockEntityTag.contains("id")) {
|
||||||
|
item.dataContainer().set(StructuredDataKey.BLOCK_ENTITY_DATA, clonedTag);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
final CompoundTag debugProperty = tag.getCompoundTag("DebugProperty");
|
final CompoundTag debugProperty = tag.getCompoundTag("DebugProperty");
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren