Fix missed null item return value

This commit is contained in:
Nassim Jahnke 2024-06-16 15:00:23 +02:00
parent b9474335e8
commit 4b44ecf6fa
No known key found for this signature in database
GPG Key ID: EF6771C01F6EF02F

View File

@ -1201,7 +1201,7 @@ public final class BlockItemPacketRewriter1_20_5 extends ItemRewriter<Clientboun
final int itemId = StructuredDataConverter.removeItemBackupTag(item, unmappedItemId(id));
if (itemId == -1) {
return null;
return StructuredItem.empty();
}
final byte count = item.getByte("Count", (byte) 1);