mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-09 11:44:19 +01:00
fix NPE issue with CB inventory
By: Tahg <tahgtahv@gmail.com>
This commit is contained in:
parent
d1bb68a060
commit
4a52ff756a
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…
Reference in a new issue