Fix nullpointerException

Former-commit-id: 5fae2e07a6d8f7c6ac25440485ba77d1a6e25f3a [formerly b8f6ad2d9d9748d557d17c31bf2bb3f022e30b73]
Former-commit-id: 64cc0d197ed83f137bb2197f63c8655260229a85
This commit is contained in:
Ghost_chu committed 2018-11-28 11:41:37 +08:00
1 parent e51a301f57
commit 9782a478ec
2 files changed
+1 -2

No files matched your search

@@ -48,7 +48,6 @@ public class PlayerListener implements Listener {
*/
@EventHandler(priority = EventPriority.MONITOR)
public void onClick(PlayerInteractEvent e) {
Util.debugLog("Clicked: "+e.getClickedBlock().toString());
if (e.getAction().equals(Action.LEFT_CLICK_BLOCK)) {
Block b = e.getClickedBlock();
if (!Util.canBeShop(b) && b.getType() != Material.WALL_SIGN) {