From e2e9c791a288b87e8504cfa64a6a1658f3f0974a Mon Sep 17 00:00:00 2001 From: "Aidan C. Brady" Date: Tue, 5 Nov 2013 07:49:26 -0500 Subject: [PATCH] Fix robit render! --- common/mekanism/client/model/ModelRobit.java | 65 +++++++++++++++----- 1 file changed, 48 insertions(+), 17 deletions(-) diff --git a/common/mekanism/client/model/ModelRobit.java b/common/mekanism/client/model/ModelRobit.java index ea5b566f8..d694fb6d4 100644 --- a/common/mekanism/client/model/ModelRobit.java +++ b/common/mekanism/client/model/ModelRobit.java @@ -125,24 +125,55 @@ public class ModelRobit extends ModelBase setRotation(eyeLeft, 0F, 0F, 0F); } - public void render(float size) - { - Body.render(size); - Bottom.render(size); - RightTrack.render(size); - LeftTrack.render(size); - Neck.render(size); - Head.render(size); - Backpack.render(size); - headback.render(size); - rightarn.render(size); - leftarm.render(size); - righthand.render(size); - lefthand.render(size); - backLight.render(size); - eyeRight.render(size); - eyeLeft.render(size); + @Override + public void render(Entity entity, float f, float f1, float f2, float f3, float f4, float f5) + { + super.render(entity, f, f1, f2, f3, f4, f5); + setRotationAngles(f, f1, f2, f3, f4, f5, entity); + + GL11.glPushMatrix(); + GL11.glRotatef(180, 0.0F, 1.0F, 0.0F); + + Body.render(f5); + Bottom.render(f5); + RightTrack.render(f5); + LeftTrack.render(f5); + Neck.render(f5); + Head.render(f5); + Backpack.render(f5); + headback.render(f5); + rightarn.render(f5); + leftarm.render(f5); + righthand.render(f5); + lefthand.render(f5); + + MekanismRenderer.glowOn(); + backLight.render(f5); + eyeRight.render(f5); + eyeLeft.render(f5); + MekanismRenderer.glowOff(); + + GL11.glPopMatrix(); } + + public void render(float size) + { + Body.render(size); + Bottom.render(size); + RightTrack.render(size); + LeftTrack.render(size); + Neck.render(size); + Head.render(size); + Backpack.render(size); + headback.render(size); + rightarn.render(size); + leftarm.render(size); + righthand.render(size); + lefthand.render(size); + backLight.render(size); + eyeRight.render(size); + eyeLeft.render(size); + } private void setRotation(ModelRenderer model, float x, float y, float z) {