Fixed minor issue with cable rendering when P2P was involved.

This commit is contained in:
AlgorithmX2 2014-01-21 22:53:04 -06:00
parent 024f3ce739
commit 1b77755dd6

View file

@ -636,7 +636,8 @@ public class PartCable extends AEBasePart implements IPartCable
rh.setTexture( getTexture( getCableColor() ) );
}
else if ( ghh != null && ccph != null && ghh.getCableConnectionType( of ) != AECableType.GLASS && ccph.getColor() != AEColor.Transparent )
else if ( ghh != null && ccph != null && ghh.getCableConnectionType( of ) != AECableType.GLASS && ccph.getColor() != AEColor.Transparent
&& ccph.getPart( of.getOpposite() ) == null )
rh.setTexture( getSmartTexture( myColor = ccph.getColor() ) );
else
rh.setTexture( getSmartTexture( getCableColor() ) );