mirror of
https://hub.spigotmc.org/stash/scm/spigot/craftbukkit.git
synced 2025-08-31 22:30:15 +00:00
fix NPE issue with CB inventory
This commit is contained in:
parent
57112887ca
commit
eead44a692
1 changed files with 2 additions and 0 deletions
|
@ -169,6 +169,8 @@ public class CraftInventory implements org.bukkit.inventory.Inventory {
|
||||||
}
|
}
|
||||||
ItemStack[] inventory = getContents();
|
ItemStack[] inventory = getContents();
|
||||||
for (int i = 0; i < inventory.length; i++) {
|
for (int i = 0; i < inventory.length; i++) {
|
||||||
|
if (inventory[i] == null) continue;
|
||||||
|
|
||||||
boolean equals = false;
|
boolean equals = false;
|
||||||
|
|
||||||
if (withAmount) {
|
if (withAmount) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue