mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-12-27 17:28:28 +01:00
Fix vehicle deletion
This commit is contained in:
parent
6b7adcdf34
commit
734c4bb5fe
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user