Mirror von
https://github.com/ViaVersion/ViaVersion.git
synchronisiert 2024-11-04 23:30:24 +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