From c7795e505bb0cc012ec71e600d28a52682898d91 Mon Sep 17 00:00:00 2001 From: Jordan Date: Wed, 21 Jun 2023 22:35:01 +0100 Subject: [PATCH] fix: return on null plot on big boom - 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())))); }