From 83acb13f73b6e873f2f0d472948ca750743d26d5 Mon Sep 17 00:00:00 2001 From: yoyosource Date: Thu, 9 Sep 2021 20:08:14 +0200 Subject: [PATCH] Hotfix SmartPlaceListener Signed-off-by: yoyosource --- .../bausystem/features/smartplace/SmartPlaceListener.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/BauSystem_Main/src/de/steamwar/bausystem/features/smartplace/SmartPlaceListener.java b/BauSystem_Main/src/de/steamwar/bausystem/features/smartplace/SmartPlaceListener.java index 650389ca..ea3df1de 100644 --- a/BauSystem_Main/src/de/steamwar/bausystem/features/smartplace/SmartPlaceListener.java +++ b/BauSystem_Main/src/de/steamwar/bausystem/features/smartplace/SmartPlaceListener.java @@ -64,6 +64,9 @@ public class SmartPlaceListener implements Listener { if (event.getAction() != Action.RIGHT_CLICK_BLOCK) return; if (event.getPlayer().isSneaking()) { if (event.getClickedBlock().getType() == Material.REPEATER) { + if (event.getItem() != null && event.getMaterial() != Material.REPEATER) { + return; + } Repeater repeater = (Repeater) event.getClickedBlock().getBlockData(); int i = repeater.getDelay() - 1; if (i <= 0) i += 4;