From 734c4bb5fe82e25d60e5409a25cb996908259601 Mon Sep 17 00:00:00 2001 From: Jesse Boyd Date: Tue, 14 Nov 2017 17:24:02 +1100 Subject: [PATCH] Fix vehicle deletion --- .../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 470640813..f0de471df 100644 --- a/Bukkit/src/main/java/com/plotsquared/bukkit/listeners/PlayerEvents.java +++ b/Bukkit/src/main/java/com/plotsquared/bukkit/listeners/PlayerEvents.java @@ -593,7 +593,7 @@ public class PlayerEvents extends PlotListener implements Listener { Plot toPlot = BukkitUtil.getLocation(to).getPlot(); if (!meta.isEmpty()) { Plot origin = (Plot) meta.get(0).value(); - if (origin.getBasePlot(false).equals(toPlot)) { + if (!origin.getBasePlot(false).equals(toPlot)) { vehicle.remove(); } } else if (toPlot != null) {