From 3329d9455b64304c64da63e1e167fb479580cfdb Mon Sep 17 00:00:00 2001 From: AlgorithmX2 Date: Thu, 11 Sep 2014 20:54:52 -0500 Subject: [PATCH] Fixed Bug: #1055 - Some texture issue --- parts/networking/PartCable.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/parts/networking/PartCable.java b/parts/networking/PartCable.java index cf7e38588..4dcb7c3c6 100644 --- a/parts/networking/PartCable.java +++ b/parts/networking/PartCable.java @@ -601,9 +601,10 @@ public class PartCable extends AEBasePart implements IPartCable rh.setTexture( getTexture( getCableColor() ) ); } - else if ( ghh != null && ccph != null && ghh.getCableConnectionType( of ) == AECableType.COVERED && ccph.getColor() != AEColor.Transparent ) + else if ( ghh != null && ccph != null && ghh.getCableConnectionType( of ) == AECableType.COVERED && ccph.getColor() != AEColor.Transparent + && ccph.getPart( of.getOpposite() ) == null ) rh.setTexture( getCoveredTexture( ccph.getColor() ) ); - else if ( ghh != null && ccph != null && ghh.getCableConnectionType( of ) == AECableType.SMART ) + else if ( ghh != null && ccph != null && ghh.getCableConnectionType( of ) == AECableType.SMART && ccph.getPart( of.getOpposite() ) == null ) { isSmart = true; rh.setTexture( getSmartTexture( getCableColor() ) );