mirror of
https://github.com/PaperMC/Paper.git
synced 2024-11-28 05:25:42 +01:00
fix NPE issue with CB inventory
This commit is contained in:
parent
57112887ca
commit
eead44a692
@ -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…
Reference in New Issue
Block a user