Mirror von
https://github.com/ViaVersion/ViaVersion.git
synchronisiert 2024-12-28 09:00:09 +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) {
|
private Item itemFromTag(final UserConnection connection, final CompoundTag item) {
|
||||||
final String id = item.getString("id");
|
final String id = item.getString("id");
|
||||||
if (id == null) {
|
if (id == null) {
|
||||||
return null;
|
return StructuredItem.empty();
|
||||||
}
|
}
|
||||||
|
|
||||||
final int itemId = StructuredDataConverter.removeItemBackupTag(item, unmappedItemId(id));
|
final int itemId = StructuredDataConverter.removeItemBackupTag(item, unmappedItemId(id));
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren