3
0
Mirror von https://github.com/ViaVersion/ViaVersion.git synchronisiert 2024-09-28 14:41:05 +02:00

Add shulker box block entity id if missing

Dieser Commit ist enthalten in:
Nassim Jahnke 2024-07-17 18:47:14 +02:00
Ursprung a45985ed58
Commit cc87c02020
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: EF6771C01F6EF02F

Datei anzeigen

@ -1480,7 +1480,10 @@ public final class BlockItemPacketRewriter1_20_5 extends ItemRewriter<Clientboun
data.set(StructuredDataKey.BASE_COLOR, baseColorIntTag.asInt()); data.set(StructuredDataKey.BASE_COLOR, baseColorIntTag.asInt());
} }
updateItemList(connection, data, tag, "Items", StructuredDataKey.CONTAINER1_20_5, true); if (tag.contains("Items")) {
updateItemList(connection, data, tag, "Items", StructuredDataKey.CONTAINER1_20_5, true);
addBlockEntityId(tag, "shulker_box"); // Won't happen to the others and doesn't actually have to be correct otherwise
}
} }
final Tag skullOwnerTag = tag.remove("SkullOwner"); final Tag skullOwnerTag = tag.remove("SkullOwner");