This commit is contained in:
Jesse Boyd 2018-01-31 13:05:11 +11:00
parent 8815c83ba1
commit 4b50276ba0
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.getVelocity().toLocation(event.getBlock().getWorld()));
Location location = BukkitUtil.getLocation(event.getBlock().getLocation());
if (location.isPlotRoad()) {
event.setCancelled(true);
}