Mirror von
https://github.com/ViaVersion/ViaVersion.git
synchronisiert 2024-11-19 14:30:16 +01:00
Fix missed null item return value
Dieser Commit ist enthalten in:
Ursprung
b9474335e8
Commit
4b44ecf6fa
@ -1201,7 +1201,7 @@ public final class BlockItemPacketRewriter1_20_5 extends ItemRewriter<Clientboun
|
|||||||
|
|
||||||
final int itemId = StructuredDataConverter.removeItemBackupTag(item, unmappedItemId(id));
|
final int itemId = StructuredDataConverter.removeItemBackupTag(item, unmappedItemId(id));
|
||||||
if (itemId == -1) {
|
if (itemId == -1) {
|
||||||
return null;
|
return StructuredItem.empty();
|
||||||
}
|
}
|
||||||
|
|
||||||
final byte count = item.getByte("Count", (byte) 1);
|
final byte count = item.getByte("Count", (byte) 1);
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren