From 37caed14a3bd79a3dd0d7b3aeaa28ce332fa62b7 Mon Sep 17 00:00:00 2001 From: jojo Date: Sat, 24 Oct 2020 15:26:49 +0200 Subject: [PATCH] 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;