fix: return on null plot on big boom

- Fixes #4084
This commit is contained in:
Jordan 2023-06-21 22:35:01 +01:00 committed by GitHub
parent 9d43434e40
commit c7795e505b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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()))));
} }