mirror of
https://github.com/ChestShop-authors/ChestShop-3.git
synced 2025-02-26 06:41:51 +01:00
Fix NPE
This commit is contained in:
parent
17fc5b224c
commit
055684fcbf
@ -46,6 +46,10 @@ public class BlockPlace implements Listener {
|
|||||||
event.setCancelled(true);
|
event.setCancelled(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!BlockUtil.isChest(placed)) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
Chest neighbor = uBlock.findNeighbor(placed);
|
Chest neighbor = uBlock.findNeighbor(placed);
|
||||||
|
|
||||||
if (neighbor == null) {
|
if (neighbor == null) {
|
||||||
|
Loading…
Reference in New Issue
Block a user