mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-29 08:36:45 +01:00
Fixes #414
This commit is contained in:
parent
ee88e765e9
commit
783355b356
@ -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;
|
||||
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user