mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-25 22:56:45 +01:00
Fix ClassCastException in runEntityTask
This commit is contained in:
parent
e41060ad65
commit
6711788dd0
@ -365,8 +365,12 @@ public final class BukkitMain extends JavaPlugin implements Listener, IPlotMain
|
||||
if (meta.isEmpty()) {
|
||||
continue;
|
||||
}
|
||||
Plot origin = (Plot) meta.get(0).value();
|
||||
if (!plot.equals(origin.getBasePlot(false))) {
|
||||
PlotId originPlotId = (PlotId) meta.get(0).value();
|
||||
if (originPlotId == null) {
|
||||
iterator.remove();
|
||||
entity.remove();
|
||||
}
|
||||
if (!plot.getId().equals(originPlotId)) {
|
||||
if (entity.hasMetadata("ps-tmp-teleport")) {
|
||||
continue;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user