From 9305bf7163b779065a7e8ebabd10f126db71901d Mon Sep 17 00:00:00 2001 From: DinoFeng <97534094+DinoFengz@users.noreply.github.com> Date: Tue, 20 Aug 2024 20:17:58 +0800 Subject: [PATCH] test build --- .../listeners/flags/worldsettings/RemoveMobsListener.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/world/bentobox/bentobox/listeners/flags/worldsettings/RemoveMobsListener.java b/src/main/java/world/bentobox/bentobox/listeners/flags/worldsettings/RemoveMobsListener.java index 59e73fd18..5ccc1fab0 100644 --- a/src/main/java/world/bentobox/bentobox/listeners/flags/worldsettings/RemoveMobsListener.java +++ b/src/main/java/world/bentobox/bentobox/listeners/flags/worldsettings/RemoveMobsListener.java @@ -31,6 +31,7 @@ public class RemoveMobsListener extends FlagListener { e.getTo().distanceSquared(e.getPlayer().getLocation()) < getPlugin().getSettings().getClearRadius() * getPlugin().getSettings().getClearRadius()) { return; } + // Only process if flag is active if (getIslands().locationIsOnIsland(e.getPlayer(), e.getTo()) && Flags.REMOVE_MOBS.isSetForWorld(e.getTo().getWorld())) { Bukkit.getScheduler().runTask(getPlugin(), () -> getIslands().clearArea(e.getTo()));