Fixed small issue with rendering thanks @amadornes

This commit is contained in:
modmuss50 2015-04-25 12:06:26 +01:00
parent a80474edd6
commit bc2bf26fc0

View file

@ -140,15 +140,13 @@ public class CablePart extends ModPart implements IEnergyConductor {
@Override
public boolean renderStatic(Vecs3d translation, RenderHelper renderer, int pass) {
renderer.setOverrideTexture(getIconFromType(type));
renderer.renderBox(ModLib2QLib.convert(boundingBoxes[6]));
renderer.renderBox(ModLib2QLib.convert(boundingBoxes[6]), getIconFromType(type));
if (connectedSides != null) {
for (ForgeDirection dir : ForgeDirection.VALID_DIRECTIONS) {
if (connectedSides.containsKey(dir))
renderer.renderBox(ModLib2QLib.convert(boundingBoxes[Functions.getIntDirFromDirection(dir)]));
renderer.renderBox(ModLib2QLib.convert(boundingBoxes[Functions.getIntDirFromDirection(dir)]), getIconFromType(type));
}
}
return true;
}