mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-25 14:46:45 +01:00
Fixes #1928
This commit is contained in:
parent
ecf94b8706
commit
5cb94f3e45
@ -1269,7 +1269,7 @@ public class PlayerEvents extends PlotListener implements Listener {
|
||||
if (event.getBlock().getType() == Material.DROPPER) return;
|
||||
}
|
||||
}
|
||||
Location location = BukkitUtil.getLocation(event.getBlock().getLocation());
|
||||
Location location = BukkitUtil.getLocation(event.getVelocity().toLocation(event.getBlock().getWorld()));
|
||||
if (location.isPlotRoad()) {
|
||||
event.setCancelled(true);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user