This commit is contained in:
Jesse Boyd
2018-05-17 14:43:51 +10:00
parent ecf94b8706
commit 5cb94f3e45

View File

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