From 20250bc9897dbfeeba129af9fd3f00dd218a62d4 Mon Sep 17 00:00:00 2001 From: manuelgu Date: Sun, 28 Aug 2016 20:14:58 +0200 Subject: [PATCH] Might resolve #1331 Wasn't able to reproduce the issue --- .../com/plotsquared/bukkit/listeners/EntitySpawnListener.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Bukkit/src/main/java/com/plotsquared/bukkit/listeners/EntitySpawnListener.java b/Bukkit/src/main/java/com/plotsquared/bukkit/listeners/EntitySpawnListener.java index 4dedca86d..e693716fe 100644 --- a/Bukkit/src/main/java/com/plotsquared/bukkit/listeners/EntitySpawnListener.java +++ b/Bukkit/src/main/java/com/plotsquared/bukkit/listeners/EntitySpawnListener.java @@ -22,6 +22,9 @@ public class EntitySpawnListener implements Listener { return; } Plot plot = area.getOwnedPlotAbs(location); + if (plot == null) { + return; + } if (Settings.Done.RESTRICT_BUILDING && plot.hasFlag(Flags.DONE)) { event.setCancelled(true); }