Compare commits

...

1 Commits

Author SHA1 Message Date
c7795e505b fix: return on null plot on big boom
- Fixes #4084
2023-06-21 22:35:01 +01:00

View File

@ -1116,6 +1116,7 @@ public class BlockEventListener implements Listener {
if (plot != null) { if (plot != null) {
plot.debug("Explosion was cancelled because explosion = false"); plot.debug("Explosion was cancelled because explosion = false");
} }
return;
} }
event.blockList().removeIf(blox -> !plot.equals(area.getOwnedPlot(BukkitUtil.adapt(blox.getLocation())))); event.blockList().removeIf(blox -> !plot.equals(area.getOwnedPlot(BukkitUtil.adapt(blox.getLocation()))));
} }