From ae220a36c89af1f8a4eb26acda26177fdbfc8341 Mon Sep 17 00:00:00 2001 From: AlgorithmX2 Date: Sat, 2 Aug 2014 00:38:29 -0500 Subject: [PATCH] Fixed Bug: #0791 - Smart/Covered Cables textures don't connect correctly --- parts/networking/PartCable.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/parts/networking/PartCable.java b/parts/networking/PartCable.java index 264d03976..cf7e38588 100644 --- a/parts/networking/PartCable.java +++ b/parts/networking/PartCable.java @@ -566,7 +566,7 @@ public class PartCable extends AEBasePart implements IPartCable IGridHost ghh = te instanceof IGridHost ? (IGridHost) te : null; boolean isSmart = false; - rh.setFacesToRender( EnumSet.complementOf( EnumSet.of( of.getOpposite() ) ) ); + rh.setFacesToRender( EnumSet.complementOf( EnumSet.of( of ) ) ); if ( ghh != null && ccph != null && ghh.getCableConnectionType( of.getOpposite() ) == AECableType.GLASS && ccph.getPart( of.getOpposite() ) == null && ccph.getColor() != AEColor.Transparent ) rh.setTexture( getGlassTexture( ccph.getColor() ) ); @@ -675,7 +675,7 @@ public class PartCable extends AEBasePart implements IPartCable boolean isGlass = false; AEColor myColor = getCableColor(); - rh.setFacesToRender( EnumSet.complementOf( EnumSet.of( of, of.getOpposite() ) ) ); + rh.setFacesToRender( EnumSet.complementOf( EnumSet.of( of ) ) ); if ( ghh != null && ccph != null && ghh.getCableConnectionType( of.getOpposite() ) == AECableType.GLASS && ccph.getPart( of.getOpposite() ) == null && ccph.getColor() != AEColor.Transparent )