mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-26 15:16:45 +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();
|
Plot toPlot = BukkitUtil.getLocation(to).getPlot();
|
||||||
if (!meta.isEmpty()) {
|
if (!meta.isEmpty()) {
|
||||||
Plot origin = (Plot) meta.get(0).value();
|
Plot origin = (Plot) meta.get(0).value();
|
||||||
if (origin.getBasePlot(false).equals(toPlot)) {
|
if (!origin.getBasePlot(false).equals(toPlot)) {
|
||||||
vehicle.remove();
|
vehicle.remove();
|
||||||
}
|
}
|
||||||
} else if (toPlot != null) {
|
} else if (toPlot != null) {
|
||||||
|
Loading…
Reference in New Issue
Block a user