From 8d1b15b0195e9f9c81f963ebe7274ee58f8a6f0c Mon Sep 17 00:00:00 2001 From: YoyoNow Date: Sat, 2 Aug 2025 13:14:05 +0200 Subject: [PATCH] Fix PistonCalculator --- .../de/steamwar/bausystem/features/util/PistonCalculator.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/BauSystem/BauSystem_Main/src/de/steamwar/bausystem/features/util/PistonCalculator.java b/BauSystem/BauSystem_Main/src/de/steamwar/bausystem/features/util/PistonCalculator.java index 6bf9b0c9..5cc4b744 100644 --- a/BauSystem/BauSystem_Main/src/de/steamwar/bausystem/features/util/PistonCalculator.java +++ b/BauSystem/BauSystem_Main/src/de/steamwar/bausystem/features/util/PistonCalculator.java @@ -57,6 +57,10 @@ public class PistonCalculator implements Listener { if (event.getAction() != Action.RIGHT_CLICK_BLOCK) return; if (event.getItem() == null) {} else if (event.getItem() != null && event.getItem().getType() == Material.SLIME_BALL) {} + else if (!event.getItem().getType().isBlock()) { + DEBOUNCE.put(event.getPlayer(), System.currentTimeMillis()); + return; + } else return; if (event.getClickedBlock() == null) return; Block clickedBlock = event.getClickedBlock();