Mirror von
https://github.com/ViaVersion/ViaVersion.git
synchronisiert 2024-12-27 00:22:51 +01:00
Don't return null item in compound tag reading
Dieser Commit ist enthalten in:
Ursprung
7e60300e2e
Commit
4210463505
@ -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));
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren