mirror of
https://github.com/GeyserMC/Geyser.git
synced 2024-08-14 23:57:35 +00:00
Shulker box NPE fix
This commit is contained in:
parent
b29e0d9d10
commit
9d540fe672
1 changed files with 1 additions and 1 deletions
|
@ -59,7 +59,7 @@ public class ShulkerBoxItem extends BlockItem {
|
||||||
List<NbtMap> itemsList = new ArrayList<>();
|
List<NbtMap> itemsList = new ArrayList<>();
|
||||||
for (int slot = 0; slot < contents.size(); slot++) {
|
for (int slot = 0; slot < contents.size(); slot++) {
|
||||||
ItemStack item = contents.get(slot);
|
ItemStack item = contents.get(slot);
|
||||||
if (item.getId() == Items.AIR_ID) {
|
if (item == null || item.getId() == Items.AIR_ID) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
ItemMapping boxMapping = session.getItemMappings().getMapping(item.getId());
|
ItemMapping boxMapping = session.getItemMappings().getMapping(item.getId());
|
||||||
|
|
Loading…
Reference in a new issue