mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-02 08:50:17 +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