From 23ded823f0f9cf6826a7b4034bb7d4bae836ef30 Mon Sep 17 00:00:00 2001 From: yoyosource Date: Mon, 24 Oct 2022 17:25:00 +0200 Subject: [PATCH] Fix coral death while freeze is active Signed-off-by: yoyosource --- .../steamwar/bausystem/features/region/FreezeListener.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/BauSystem_Main/src/de/steamwar/bausystem/features/region/FreezeListener.java b/BauSystem_Main/src/de/steamwar/bausystem/features/region/FreezeListener.java index dc8232b3..f8e811aa 100644 --- a/BauSystem_Main/src/de/steamwar/bausystem/features/region/FreezeListener.java +++ b/BauSystem_Main/src/de/steamwar/bausystem/features/region/FreezeListener.java @@ -175,4 +175,11 @@ public class FreezeListener implements Listener { } } } + + @EventHandler + public void onBlockFade(BlockFadeEvent event) { + if (Region.getRegion(event.getBlock().getLocation()).get(Flag.FREEZE) == FreezeMode.ACTIVE) { + event.setCancelled(true); + } + } }