This commit is contained in:
boy0001 2015-07-21 13:41:04 +10:00
parent ee88e765e9
commit 783355b356
2 changed files with 7 additions and 1 deletions

View File

@ -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;

View File

@ -167,7 +167,13 @@ public class PlotAnalysis {
public void run() {
analyzePlot(queuePlot, new RunnableVal<PlotAnalysis>() {
public void run() {
try {
wait(10000);
} catch (InterruptedException e) {
e.printStackTrace();
}
synchronized (lock) {
MainUtil.runners.remove(queuePlot);
lock.notify();
}
}