Fix vehicle deletion

This commit is contained in:
Jesse Boyd 2017-11-14 17:24:02 +11:00
parent 6b7adcdf34
commit 734c4bb5fe
No known key found for this signature in database
GPG Key ID: 59F1DE6293AF6E1F

View File

@ -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) {