Fixed small issue with rendering thanks @amadornes
This commit is contained in:
parent
a80474edd6
commit
bc2bf26fc0
1 changed files with 2 additions and 4 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue