From d064cb8f8f537678471ee32276d267c24d2adb85 Mon Sep 17 00:00:00 2001 From: Lixfel Date: Fri, 8 Oct 2021 07:48:56 +0200 Subject: [PATCH] Waterremover adjustment for Underwater Signed-off-by: Lixfel --- .../src/de/steamwar/fightsystem/listener/WaterRemover.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/FightSystem_Core/src/de/steamwar/fightsystem/listener/WaterRemover.java b/FightSystem_Core/src/de/steamwar/fightsystem/listener/WaterRemover.java index ae8059e..f6fba6b 100644 --- a/FightSystem_Core/src/de/steamwar/fightsystem/listener/WaterRemover.java +++ b/FightSystem_Core/src/de/steamwar/fightsystem/listener/WaterRemover.java @@ -54,6 +54,10 @@ public class WaterRemover implements Listener { } private void checkBlock(Block b) { + //do not remove outside teamareas + if(!Config.BlueExtendRegion.inRegion(b) && !Config.RedExtendRegion.inRegion(b)) + return; + //checks for water and removes it, if present if(!FlatteningWrapper.impl.removeWater(b)) return;