mirror of
https://github.com/TotalFreedomMC/TF-PlotSquared.git
synced 2025-02-11 19:50:38 +00:00
Fixes #522
This commit is contained in:
parent
f6fb7482e1
commit
051449157a
1 changed files with 4 additions and 1 deletions
|
@ -293,7 +293,10 @@ public class BukkitMain extends JavaPlugin implements Listener, IPlotMain {
|
|||
}
|
||||
Location loc = entity.getLocation();
|
||||
if (MainUtil.isPlotRoad(BukkitUtil.getLocation(loc))) {
|
||||
entity.remove();
|
||||
Entity passenger = entity.getPassenger();
|
||||
if (!(passenger instanceof Player)) {
|
||||
entity.remove();
|
||||
}
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue