fix the rendering of helmets on robots, fixes #2741

This commit is contained in:
Hea3veN 2015-06-04 19:29:45 -03:00
parent 92f308e328
commit eec2022b7c
2 changed files with 3 additions and 1 deletions

View file

@ -8,6 +8,7 @@ Bugs fixed:
* [#2730] Fix integration table using energy when it has an invalid recipe (hea3ven)
* [#2694] Fix client/server desync on the gate copier item (hea3ven)
* [#2741] Fix the rendering of helmets on robots (hea3ven)
* Fix gate expansion recipe ignoring the input's stack size (hea3ven)
* Fix planters dropping items in stead of planting (hea3ven)
* Use the OreDict for the pipes recipes (ganymedes01)

View file

@ -72,7 +72,7 @@ public class RenderRobot extends Render implements IItemRenderer {
box.addBox(-4F, -4F, -4F, 8, 8, 8);
box.setRotationPoint(0.0F, 0.0F, 0.0F);
helmetBox = new ModelRenderer(modelHelmet, 0, 0);
helmetBox.addBox(-4F, -4F, -4F, 8, 8, 8);
helmetBox.addBox(-4F, -8F, -4F, 8, 8, 8);
helmetBox.setRotationPoint(0.0F, 0.0F, 0.0F);
}
@ -238,6 +238,7 @@ public class RenderRobot extends Render implements IItemRenderer {
if (armorModel != null) {
armorModel.render(entity, 0, 0, 0, -90f, 0, 1 / 16F);
} else {
GL11.glRotatef(-90.0f, 0.0f, 1.0f, 0.0f);
helmetBox.render(1 / 16F);
}
GL11.glPopMatrix();