mirror of
https://github.com/PaperMC/Paper.git
synced 2026-11-25 10:29:41 -05:00
Fixed NPE in player inventory + don't ignore the cancel state of world unloads
This commit is contained in:
1 parent
a7664a104f
commit
e31cedf583
2 files changed
+2
-2
No files matched your search
@@ -312,7 +312,7 @@ public class InventoryPlayer implements IInventory {
|
||||
}
|
||||
|
||||
public boolean b(Block block) {
|
||||
if (block.material.k()) {
|
||||
if (block != null && block.material.k()) { // CraftBukkit - fix NPE
|
||||
return true;
|
||||
} else {
|
||||
ItemStack itemstack = this.getItem(this.itemInHandIndex);
|
||||
|
||||
Reference in new issue
Block a user