From 37caed14a3bd79a3dd0d7b3aeaa28ce332fa62b7 Mon Sep 17 00:00:00 2001 From: jojo Date: Sat, 24 Oct 2020 15:26:49 +0200 Subject: [PATCH 1/2] Fix Autoloader load at Observer --- BauSystem_Main/src/de/steamwar/bausystem/world/AutoLoader.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/BauSystem_Main/src/de/steamwar/bausystem/world/AutoLoader.java b/BauSystem_Main/src/de/steamwar/bausystem/world/AutoLoader.java index 6af24d7..6ca7aa1 100644 --- a/BauSystem_Main/src/de/steamwar/bausystem/world/AutoLoader.java +++ b/BauSystem_Main/src/de/steamwar/bausystem/world/AutoLoader.java @@ -158,6 +158,8 @@ 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(!setup || !event.getPlayer().equals(player)) return; From 6eb8d51dbd3e8c144d8c0255d11e9d4eb4f56911 Mon Sep 17 00:00:00 2001 From: jojo Date: Sat, 24 Oct 2020 17:31:52 +0200 Subject: [PATCH 2/2] Fix Autoloader load at Lever Fix Autoloader load at Noteblock --- BauSystem_Main/src/de/steamwar/bausystem/world/AutoLoader.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/BauSystem_Main/src/de/steamwar/bausystem/world/AutoLoader.java b/BauSystem_Main/src/de/steamwar/bausystem/world/AutoLoader.java index 6ca7aa1..ecc27e4 100644 --- a/BauSystem_Main/src/de/steamwar/bausystem/world/AutoLoader.java +++ b/BauSystem_Main/src/de/steamwar/bausystem/world/AutoLoader.java @@ -160,6 +160,8 @@ public class AutoLoader extends IAutoLoader implements Listener { return; if (event.getClickedBlock().getBlockData().getMaterial() == Material.OBSERVER) return; + if (event.getPlayer().isSneaking()) + return; if(!setup || !event.getPlayer().equals(player)) return;