From b7963f2fe6c010554851cf6e34c5a40077679801 Mon Sep 17 00:00:00 2001 From: YoyoNow Date: Thu, 31 Jul 2025 18:00:38 +0200 Subject: [PATCH] Fix PistonCalculator --- .../de/steamwar/bausystem/features/util/PistonCalculator.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 ddc98cd5..4479ff63 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 @@ -55,7 +55,8 @@ public class PistonCalculator implements Listener { public void onPlayerInteract(PlayerInteractEvent event) { if (!Permission.BUILD.hasPermission(event.getPlayer())) return; if (event.getAction() != Action.RIGHT_CLICK_BLOCK) return; - if (event.hasItem() && event.getItem().getType() != Material.SLIME_BALL) return; + if (event.hasItem() && event.getItem().getType() == Material.SLIME_BALL) { + } else if (event.hasItem()) return; if (event.getClickedBlock() == null) return; Block clickedBlock = event.getClickedBlock(); Material blockType = clickedBlock.getType();