mirror of
https://github.com/GeyserMC/Geyser.git
synced 2026-01-03 22:16:31 +00:00
Shulker box NPE fix
This commit is contained in:
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user