From f3c03348d9647d837b50096c5f4de520ab81d5ba Mon Sep 17 00:00:00 2001 From: Jordan Date: Thu, 22 Jun 2023 19:09:31 +0100 Subject: [PATCH] fix: return on null plot on big boom (#4085) - Fixes #4084 --- .../java/com/plotsquared/bukkit/listener/BlockEventListener.java | 1 + 1 file changed, 1 insertion(+) diff --git a/Bukkit/src/main/java/com/plotsquared/bukkit/listener/BlockEventListener.java b/Bukkit/src/main/java/com/plotsquared/bukkit/listener/BlockEventListener.java index 1d87b283a..4a9e1c9f0 100644 --- a/Bukkit/src/main/java/com/plotsquared/bukkit/listener/BlockEventListener.java +++ b/Bukkit/src/main/java/com/plotsquared/bukkit/listener/BlockEventListener.java @@ -1116,6 +1116,7 @@ public class BlockEventListener implements Listener { if (plot != null) { plot.debug("Explosion was cancelled because explosion = false"); } + return; } event.blockList().removeIf(blox -> !plot.equals(area.getOwnedPlot(BukkitUtil.adapt(blox.getLocation())))); }