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 a6ea8a47..3b8d7c69 100644 --- a/BauSystem_Main/src/de/steamwar/bausystem/features/region/FreezeListener.java +++ b/BauSystem_Main/src/de/steamwar/bausystem/features/region/FreezeListener.java @@ -103,15 +103,18 @@ public class FreezeListener implements Listener { @EventHandler public void onBlockBreak(BlockBreakEvent e) { if (Core.getVersion() < 19) return; + if (e.getPlayer().getItemInUse() != null && e.getPlayer().getItemInUse().getType() == Material.DEBUG_STICK) return; if (Region.getRegion(e.getBlock().getLocation()).get(Flag.FREEZE) == FreezeMode.ACTIVE) { e.setCancelled(true); e.getBlock().setType(Material.AIR, false); } } + /* @EventHandler public void onBlockPlace(BlockPlaceEvent e) { if (Core.getVersion() < 19) return; + if (!e.getItemInHand().getType().isBlock()) return; if (Region.getRegion(e.getBlock().getLocation()).get(Flag.FREEZE) == FreezeMode.ACTIVE) { e.setCancelled(true); Bukkit.getScheduler().runTaskLater(BauSystem.getInstance(), () -> { @@ -119,6 +122,7 @@ public class FreezeListener implements Listener { }, 1L); } } + */ @EventHandler public void onFluidLevelChange(FluidLevelChangeEvent e) {