From 6afaeebfae21a1b3833c6d1b643f0f519de307fe Mon Sep 17 00:00:00 2001 From: Chaoscaot Date: Sat, 29 Aug 2020 09:12:09 +0200 Subject: [PATCH] Fixed Autoloader 15 Redstone under Block --- .../src/de/steamwar/bausystem/world/AutoLoader_15.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/BauSystem_15/src/de/steamwar/bausystem/world/AutoLoader_15.java b/BauSystem_15/src/de/steamwar/bausystem/world/AutoLoader_15.java index 720a857..2dbcbba 100644 --- a/BauSystem_15/src/de/steamwar/bausystem/world/AutoLoader_15.java +++ b/BauSystem_15/src/de/steamwar/bausystem/world/AutoLoader_15.java @@ -36,7 +36,6 @@ class AutoLoader_15 { static void updateBlock(Location location) { Location[] locations = new Location[] { - location.clone(), location.clone().add(1, 0,0), location.clone().add(-1, 0,0), location.clone().add(0, 1,0), @@ -45,7 +44,7 @@ class AutoLoader_15 { location.clone().add(0, 0,-1) }; for (Location value : locations) { - if (value.getBlock().getType().toString().contains("SIGN")) continue; + if (!value.getBlock().getType().isSolid()) continue; BlockData data = value.getBlock().getBlockData(); value.getBlock().setType(Material.BARRIER, true); value.getBlock().setBlockData(data, true);