From 783355b3563cc68b3745c9c91253b15126c95529 Mon Sep 17 00:00:00 2001 From: boy0001 Date: Tue, 21 Jul 2015 13:41:04 +1000 Subject: [PATCH] Fixes #414 --- src/main/java/com/intellectualcrafters/plot/BukkitMain.java | 2 +- .../com/intellectualcrafters/plot/object/PlotAnalysis.java | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/intellectualcrafters/plot/BukkitMain.java b/src/main/java/com/intellectualcrafters/plot/BukkitMain.java index 51ec62892..ce2c69f9f 100644 --- a/src/main/java/com/intellectualcrafters/plot/BukkitMain.java +++ b/src/main/java/com/intellectualcrafters/plot/BukkitMain.java @@ -375,7 +375,7 @@ public class BukkitMain extends JavaPlugin implements Listener, IPlotMain { case ZOMBIE: default: { Location loc = entity.getLocation(); - if (manager.getPlotIdAbs(pw, loc.getBlockX(), 0, loc.getBlockZ()) == null) { + if (MainUtil.isPlotRoad(BukkitUtil.getLocation(loc))) { entity.remove(); } break; diff --git a/src/main/java/com/intellectualcrafters/plot/object/PlotAnalysis.java b/src/main/java/com/intellectualcrafters/plot/object/PlotAnalysis.java index 47b37de9d..a59867a98 100644 --- a/src/main/java/com/intellectualcrafters/plot/object/PlotAnalysis.java +++ b/src/main/java/com/intellectualcrafters/plot/object/PlotAnalysis.java @@ -167,7 +167,13 @@ public class PlotAnalysis { public void run() { analyzePlot(queuePlot, new RunnableVal() { public void run() { + try { + wait(10000); + } catch (InterruptedException e) { + e.printStackTrace(); + } synchronized (lock) { + MainUtil.runners.remove(queuePlot); lock.notify(); } }