diff --git a/BauSystem_Main/src/de/steamwar/bausystem/world/AutoLoader.java b/BauSystem_Main/src/de/steamwar/bausystem/world/AutoLoader.java index 6af24d7..ecc27e4 100644 --- a/BauSystem_Main/src/de/steamwar/bausystem/world/AutoLoader.java +++ b/BauSystem_Main/src/de/steamwar/bausystem/world/AutoLoader.java @@ -158,6 +158,10 @@ public class AutoLoader extends IAutoLoader implements Listener { public void onPlayerInteract(PlayerInteractEvent event){ if (event.getAction() != Action.RIGHT_CLICK_BLOCK && event.getAction() != Action.PHYSICAL) return; + if (event.getClickedBlock().getBlockData().getMaterial() == Material.OBSERVER) + return; + if (event.getPlayer().isSneaking()) + return; if(!setup || !event.getPlayer().equals(player)) return;