From 8bf5a3b4cd200af823bb636b55fb289bbf6e7412 Mon Sep 17 00:00:00 2001 From: Lixfel Date: Sun, 1 Mar 2020 15:43:32 +0100 Subject: [PATCH] WorldEdit autofreeze --- .../src/de/steamwar/bausystem/commands/CommandFreeze.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/BauSystem_Main/src/de/steamwar/bausystem/commands/CommandFreeze.java b/BauSystem_Main/src/de/steamwar/bausystem/commands/CommandFreeze.java index 71760bc..879a7cc 100644 --- a/BauSystem_Main/src/de/steamwar/bausystem/commands/CommandFreeze.java +++ b/BauSystem_Main/src/de/steamwar/bausystem/commands/CommandFreeze.java @@ -50,4 +50,9 @@ public class CommandFreeze extends ToggleCommand { public void onRedstoneEvent(BlockRedstoneEvent e){ e.setNewCurrent(e.getOldCurrent()); } + + @EventHandler + public void onBlockDispense(BlockDispenseEvent e){ + e.setCancelled(true); + } }