Fixed render glitch with dense cable and buses.

This commit is contained in:
AlgorithmX2 2014-02-11 20:01:55 -06:00
parent b8a74bd7a4
commit d14d1c6f07

View file

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