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 ea3df1de..25c9dcbc 100644 --- a/BauSystem_Main/src/de/steamwar/bausystem/features/smartplace/SmartPlaceListener.java +++ b/BauSystem_Main/src/de/steamwar/bausystem/features/smartplace/SmartPlaceListener.java @@ -62,6 +62,7 @@ public class SmartPlaceListener implements Listener { @EventHandler public void onPlayerInteract(PlayerInteractEvent event) { if (event.getAction() != Action.RIGHT_CLICK_BLOCK) return; + if (!Config.getInstance().get(event.getPlayer()).getPlainValueOrDefault("smartPlace", false)) return; if (event.getPlayer().isSneaking()) { if (event.getClickedBlock().getType() == Material.REPEATER) { if (event.getItem() != null && event.getMaterial() != Material.REPEATER) { @@ -77,7 +78,6 @@ public class SmartPlaceListener implements Listener { return; } if (!event.getClickedBlock().getType().isInteractable()) return; - if (!Config.getInstance().get(event.getPlayer()).getPlainValueOrDefault("smartPlace", false)) return; if (event.getItem() == null) return; if (!event.getMaterial().isBlock()) return;