From 210d5d26026cb627ab8ae4de92956e08a045ecaf Mon Sep 17 00:00:00 2001 From: Sebastian Hartte Date: Fri, 26 Aug 2016 12:42:51 +0200 Subject: [PATCH] Merge fixes for interface. --- src/main/java/appeng/block/misc/BlockInterface.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/main/java/appeng/block/misc/BlockInterface.java b/src/main/java/appeng/block/misc/BlockInterface.java index 52046cff9..0ac8a46c6 100644 --- a/src/main/java/appeng/block/misc/BlockInterface.java +++ b/src/main/java/appeng/block/misc/BlockInterface.java @@ -40,6 +40,7 @@ import appeng.core.sync.GuiBridge; import appeng.tile.misc.TileInterface; import appeng.util.Platform; + public class BlockInterface extends AEBaseTileBlock { @@ -55,7 +56,7 @@ public class BlockInterface extends AEBaseTileBlock @Override protected IProperty[] getAEStates() { - return new IProperty[] { AE_BLOCK_FORWARD, AE_BLOCK_UP, OMNIDIRECTIONAL }; + return new IProperty[] { OMNIDIRECTIONAL }; } @Override @@ -64,7 +65,8 @@ public class BlockInterface extends AEBaseTileBlock // Determine whether the interface is omni-directional or not TileInterface te = getTileEntity( world, pos ); boolean omniDirectional = true; // The default - if (te != null) { + if( te != null ) + { omniDirectional = te.isOmniDirectional(); } @@ -106,5 +108,4 @@ public class BlockInterface extends AEBaseTileBlock ( (TileInterface) rotatable ).setSide( axis ); } } - }