From 5cb94f3e45f4555c424524e7a3a7e79b92b0379e Mon Sep 17 00:00:00 2001 From: Jesse Boyd Date: Thu, 17 May 2018 14:43:51 +1000 Subject: [PATCH] Fixes #1928 --- .../java/com/plotsquared/bukkit/listeners/PlayerEvents.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Bukkit/src/main/java/com/plotsquared/bukkit/listeners/PlayerEvents.java b/Bukkit/src/main/java/com/plotsquared/bukkit/listeners/PlayerEvents.java index bd589a0c6..d4897be3b 100644 --- a/Bukkit/src/main/java/com/plotsquared/bukkit/listeners/PlayerEvents.java +++ b/Bukkit/src/main/java/com/plotsquared/bukkit/listeners/PlayerEvents.java @@ -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); }