This commit is contained in:
Jesse Boyd 2018-05-17 14:43:51 +10:00
parent ecf94b8706
commit 5cb94f3e45
No known key found for this signature in database
GPG Key ID: 59F1DE6293AF6E1F

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