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;