mirror of
https://github.com/ChestShop-authors/ChestShop-3.git
synced 2024-09-30 07:27:49 +02: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