Don't return null item in compound tag reading

This commit is contained in:
Nassim Jahnke 2024-06-15 22:56:19 +02:00
parent 7e60300e2e
commit 4210463505
No known key found for this signature in database
GPG Key ID: EF6771C01F6EF02F

View File

@ -1196,7 +1196,7 @@ public final class BlockItemPacketRewriter1_20_5 extends ItemRewriter<Clientboun
private Item itemFromTag(final UserConnection connection, final CompoundTag item) {
final String id = item.getString("id");
if (id == null) {
return null;
return StructuredItem.empty();
}
final int itemId = StructuredDataConverter.removeItemBackupTag(item, unmappedItemId(id));