Fix for explosion

This commit is contained in:
Jesse Boyd 2016-03-03 12:25:57 +11:00
parent 0dc672bcd5
commit 2b3fb7b4d0

View File

@ -564,7 +564,8 @@ public class PlayerEvents extends com.plotsquared.listener.PlotListener implemen
iter.remove();
}
}
} else {
return;
}
Plot plot = area.getOwnedPlot(loc);
if (plot != null) {
if (FlagManager.isPlotFlagTrue(plot, "explosion")) {
@ -594,12 +595,11 @@ public class PlayerEvents extends com.plotsquared.listener.PlotListener implemen
iter.remove();
}
}
return;
}
} else {
event.setCancelled(true);
}
}
}
@EventHandler(priority = EventPriority.HIGHEST, ignoreCancelled = true)
public void onWorldChanged(final PlayerChangedWorldEvent event) {