From 897a18d8b37c01adb3b7adcfb30308b42f5af99f Mon Sep 17 00:00:00 2001 From: Chaoscaot Date: Wed, 28 Oct 2020 21:42:43 +0100 Subject: [PATCH] Fixing Yoyo Code --- BauSystem_Main/src/de/steamwar/bausystem/world/AutoLoader.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/BauSystem_Main/src/de/steamwar/bausystem/world/AutoLoader.java b/BauSystem_Main/src/de/steamwar/bausystem/world/AutoLoader.java index ecc27e4..24350e7 100644 --- a/BauSystem_Main/src/de/steamwar/bausystem/world/AutoLoader.java +++ b/BauSystem_Main/src/de/steamwar/bausystem/world/AutoLoader.java @@ -158,7 +158,7 @@ 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) + if (event.getClickedBlock().getType() == Material.OBSERVER) return; if (event.getPlayer().isSneaking()) return;