3
0
Mirror von https://github.com/GeyserMC/Geyser.git synchronisiert 2024-10-01 23:50:11 +02:00

Shulker box NPE fix

Dieser Commit ist enthalten in:
Camotoy 2024-04-24 16:41:02 -04:00
Ursprung b29e0d9d10
Commit 9d540fe672
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: 7EEFB66FE798081F

Datei anzeigen

@ -59,7 +59,7 @@ public class ShulkerBoxItem extends BlockItem {
List<NbtMap> itemsList = new ArrayList<>();
for (int slot = 0; slot < contents.size(); slot++) {
ItemStack item = contents.get(slot);
if (item.getId() == Items.AIR_ID) {
if (item == null || item.getId() == Items.AIR_ID) {
continue;
}
ItemMapping boxMapping = session.getItemMappings().getMapping(item.getId());