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 846dd40..15d77b8 100644 --- a/BauSystem_15/src/de/steamwar/bausystem/world/AutoLoader_15.java +++ b/BauSystem_15/src/de/steamwar/bausystem/world/AutoLoader_15.java @@ -4,6 +4,7 @@ import org.bukkit.Location; import org.bukkit.Material; import org.bukkit.block.Block; import org.bukkit.block.data.BlockData; +import org.bukkit.block.data.Directional; import org.bukkit.block.data.Powerable; import org.bukkit.event.block.Action; import org.bukkit.event.player.PlayerInteractEvent; @@ -31,6 +32,12 @@ class AutoLoader_15 { powerable.setPowered(active); block.setBlockData(powerable); block.getState().update(true); + + if(data instanceof Directional){ + Directional directional = (Directional) data; + block.getRelative(directional.getFacing()).getState().update(true); + } + return true; }