mirror of
https://github.com/PaperMC/Paper.git
synced 2026-11-25 10:29:41 -05:00
Cease execution if block is AIR. Fixes BUKKIT-2104
This commit is contained in:
1 parent
a574ec54cc
commit
44234c47ce
2 files changed
+1
-6
No files matched your search
@@ -363,12 +363,6 @@ public class PlayerInventory implements IInventory {
|
||||
}
|
||||
|
||||
public boolean b(Block block) {
|
||||
// CraftBukkit start - fixed NPE
|
||||
if (block == null) {
|
||||
return false;
|
||||
}
|
||||
// CraftBukkit end
|
||||
|
||||
if (block.material.isAlwaysDestroyable()) {
|
||||
return true;
|
||||
} else {
|
||||
|
||||
Reference in new issue
Block a user