diff --git a/common/mekanism/generators/client/BlockRenderingHandler.java b/common/mekanism/generators/client/BlockRenderingHandler.java index 7a7a8f4bf..0a62603d9 100644 --- a/common/mekanism/generators/client/BlockRenderingHandler.java +++ b/common/mekanism/generators/client/BlockRenderingHandler.java @@ -47,7 +47,7 @@ public class BlockRenderingHandler implements ISimpleBlockRenderingHandler GL11.glRotatef(90F, 0.0F, 1.0F, 0.0F); GL11.glTranslatef(0.0F, 0.3F, 0.0F); Minecraft.getMinecraft().renderEngine.bindTexture(MekanismUtils.getResource(ResourceType.RENDER, "AdvancedSolarGenerator.png")); - advancedSolarGenerator.render(0.0F, 0.022F); + advancedSolarGenerator.render(0.022F); } else if(metadata == GeneratorType.SOLAR_GENERATOR.meta) { diff --git a/common/mekanism/generators/client/model/ModelAdvancedSolarGenerator.java b/common/mekanism/generators/client/model/ModelAdvancedSolarGenerator.java index 35c46b8e1..449a7577c 100644 --- a/common/mekanism/generators/client/model/ModelAdvancedSolarGenerator.java +++ b/common/mekanism/generators/client/model/ModelAdvancedSolarGenerator.java @@ -2,155 +2,279 @@ package mekanism.generators.client.model; import net.minecraft.client.model.ModelBase; import net.minecraft.client.model.ModelRenderer; -import cpw.mods.fml.relauncher.Side; -import cpw.mods.fml.relauncher.SideOnly; -@SideOnly(Side.CLIENT) public class ModelAdvancedSolarGenerator extends ModelBase { - ModelRenderer BASE; - ModelRenderer SUPPORT_1_ROTATES; - ModelRenderer MECHANISM_ROTATES; - ModelRenderer PANEL_1_ROTATES; - ModelRenderer PANEL_2_ROTATES; - ModelRenderer PANEL_2_SUPPORT_1_ROTATES; - ModelRenderer PANEL_2_SUPPORT_2_ROTATES; - ModelRenderer PANEL_2_SUPPORT_3_ROTATES; - ModelRenderer PANEL_2_SUPPORT_4_ROTATES; - ModelRenderer PANEL_1_SUPPORT_1_ROTATES; - ModelRenderer PANEL_1_SUPPORT_2_ROTATES; - ModelRenderer PANEL_1_SUPPORT_3_ROTATES; - ModelRenderer PANEL_1_SUPPORT_4_ROTATES; - ModelRenderer SUPPORT_2_ROTATES; - ModelRenderer SUPPORT_3_ROTATES; - + ModelRenderer foot1; + ModelRenderer foot2; + ModelRenderer foot3; + ModelRenderer foot1side; + ModelRenderer foot2side; + ModelRenderer foot3side; + ModelRenderer smallfoot; + ModelRenderer base; + ModelRenderer outputbox; + ModelRenderer outputboxbottom; + ModelRenderer beam; + ModelRenderer connectorbox; + ModelRenderer panelpole; + ModelRenderer Shape5; + ModelRenderer Shape6; + ModelRenderer Shape7; + ModelRenderer Shape8; + ModelRenderer bar; + ModelRenderer bar1; + ModelRenderer bar2; + ModelRenderer bar3; + ModelRenderer Shape9; + ModelRenderer Shape10; + ModelRenderer Shape11; + ModelRenderer Shape12; + ModelRenderer Shape13; + ModelRenderer Shape14; + ModelRenderer Shape15; + ModelRenderer Shape16; + ModelRenderer Shape17; + ModelRenderer Shape18; + ModelRenderer Shape19; + public ModelAdvancedSolarGenerator() - { - textureWidth = 256; - textureHeight = 256; - - BASE = new ModelRenderer(this, 0, 54); - BASE.addBox(0F, 0F, 0F, 8, 6, 8); - BASE.setRotationPoint(-4F, 18F, -4F); - BASE.setTextureSize(256, 256); - BASE.mirror = true; - setRotation(BASE, 0F, 0F, 0F); - SUPPORT_1_ROTATES = new ModelRenderer(this, 0, 72); - SUPPORT_1_ROTATES.addBox(-2F, 0F, -2F, 4, 42, 4); - SUPPORT_1_ROTATES.setRotationPoint(0F, -22F, 0F); - SUPPORT_1_ROTATES.setTextureSize(256, 256); - SUPPORT_1_ROTATES.mirror = true; - setRotation(SUPPORT_1_ROTATES, 0F, 0F, 0F); - MECHANISM_ROTATES = new ModelRenderer(this, 0, 121); - MECHANISM_ROTATES.addBox(-3F, -3F, -3F, 6, 6, 6); - MECHANISM_ROTATES.setRotationPoint(0F, -21F, 0F); - MECHANISM_ROTATES.setTextureSize(256, 256); - MECHANISM_ROTATES.mirror = true; - setRotation(MECHANISM_ROTATES, 0.7853982F, 0F, 0F); - PANEL_1_ROTATES = new ModelRenderer(this, 0, 0); - PANEL_1_ROTATES.addBox(3F, -1F, -24F, 19, 2, 48); - PANEL_1_ROTATES.setRotationPoint(0F, -21F, 0F); - PANEL_1_ROTATES.setTextureSize(256, 256); - PANEL_1_ROTATES.mirror = true; - setRotation(PANEL_1_ROTATES, 0F, 0F, 0F); - PANEL_2_ROTATES = new ModelRenderer(this, 0, 0); - PANEL_2_ROTATES.addBox(-22F, -1F, -24F, 19, 2, 48); - PANEL_2_ROTATES.setRotationPoint(0F, -21F, 0F); - PANEL_2_ROTATES.setTextureSize(256, 256); - PANEL_2_ROTATES.mirror = true; - setRotation(PANEL_2_ROTATES, 0F, 0F, 0F); - PANEL_2_SUPPORT_1_ROTATES = new ModelRenderer(this, 43, 53); - PANEL_2_SUPPORT_1_ROTATES.addBox(-24F, -2F, -25F, 21, 4, 4); - PANEL_2_SUPPORT_1_ROTATES.setRotationPoint(0F, -21F, 0F); - PANEL_2_SUPPORT_1_ROTATES.setTextureSize(256, 256); - PANEL_2_SUPPORT_1_ROTATES.mirror = true; - setRotation(PANEL_2_SUPPORT_1_ROTATES, 0F, 0F, 0F); - PANEL_2_SUPPORT_2_ROTATES = new ModelRenderer(this, 43, 53); - PANEL_2_SUPPORT_2_ROTATES.addBox(-24F, -2F, 22F, 21, 4, 4); - PANEL_2_SUPPORT_2_ROTATES.setRotationPoint(0F, -21F, 0F); - PANEL_2_SUPPORT_2_ROTATES.setTextureSize(256, 256); - PANEL_2_SUPPORT_2_ROTATES.mirror = true; - setRotation(PANEL_2_SUPPORT_2_ROTATES, 0F, 0F, 0F); - PANEL_2_SUPPORT_3_ROTATES = new ModelRenderer(this, 43, 53); - PANEL_2_SUPPORT_3_ROTATES.addBox(-24F, -2F, -2F, 21, 4, 4); - PANEL_2_SUPPORT_3_ROTATES.setRotationPoint(0F, -21F, 0F); - PANEL_2_SUPPORT_3_ROTATES.setTextureSize(256, 256); - PANEL_2_SUPPORT_3_ROTATES.mirror = true; - setRotation(PANEL_2_SUPPORT_3_ROTATES, 0F, 0F, 0F); - PANEL_2_SUPPORT_4_ROTATES = new ModelRenderer(this, 43, 63); - PANEL_2_SUPPORT_4_ROTATES.addBox(-24F, -2F, -21F, 4, 4, 43); - PANEL_2_SUPPORT_4_ROTATES.setRotationPoint(0F, -21F, 0F); - PANEL_2_SUPPORT_4_ROTATES.setTextureSize(256, 256); - PANEL_2_SUPPORT_4_ROTATES.mirror = true; - setRotation(PANEL_2_SUPPORT_4_ROTATES, 0F, 0F, 0F); - PANEL_1_SUPPORT_1_ROTATES = new ModelRenderer(this, 43, 53); - PANEL_1_SUPPORT_1_ROTATES.addBox(3F, -2F, -25F, 21, 4, 4); - PANEL_1_SUPPORT_1_ROTATES.setRotationPoint(0F, -21F, 0F); - PANEL_1_SUPPORT_1_ROTATES.setTextureSize(256, 256); - PANEL_1_SUPPORT_1_ROTATES.mirror = true; - setRotation(PANEL_1_SUPPORT_1_ROTATES, 0F, 0F, 0F); - PANEL_1_SUPPORT_2_ROTATES = new ModelRenderer(this, 43, 63); - PANEL_1_SUPPORT_2_ROTATES.addBox(20F, -2F, -21F, 4, 4, 43); - PANEL_1_SUPPORT_2_ROTATES.setRotationPoint(0F, -21F, 0F); - PANEL_1_SUPPORT_2_ROTATES.setTextureSize(256, 256); - PANEL_1_SUPPORT_2_ROTATES.mirror = true; - setRotation(PANEL_1_SUPPORT_2_ROTATES, 0F, 0F, 0F); - PANEL_1_SUPPORT_3_ROTATES = new ModelRenderer(this, 43, 53); - PANEL_1_SUPPORT_3_ROTATES.addBox(3F, -2F, -2F, 21, 4, 4); - PANEL_1_SUPPORT_3_ROTATES.setRotationPoint(0F, -21F, 0F); - PANEL_1_SUPPORT_3_ROTATES.setTextureSize(256, 256); - PANEL_1_SUPPORT_3_ROTATES.mirror = true; - setRotation(PANEL_1_SUPPORT_3_ROTATES, 0F, 0F, 0F); - PANEL_1_SUPPORT_4_ROTATES = new ModelRenderer(this, 43, 53); - PANEL_1_SUPPORT_4_ROTATES.addBox(3F, -2F, 22F, 21, 4, 4); - PANEL_1_SUPPORT_4_ROTATES.setRotationPoint(0F, -21F, 0F); - PANEL_1_SUPPORT_4_ROTATES.setTextureSize(256, 256); - PANEL_1_SUPPORT_4_ROTATES.mirror = true; - setRotation(PANEL_1_SUPPORT_4_ROTATES, 0F, 0F, 0F); - SUPPORT_2_ROTATES = new ModelRenderer(this, 20, 72); - SUPPORT_2_ROTATES.addBox(2F, -19F, -1F, 1, 37, 2); - SUPPORT_2_ROTATES.setRotationPoint(0F, 0F, 0F); - SUPPORT_2_ROTATES.setTextureSize(256, 256); - SUPPORT_2_ROTATES.mirror = true; - setRotation(SUPPORT_2_ROTATES, 0F, 0F, 0F); - SUPPORT_3_ROTATES = new ModelRenderer(this, 30, 72); - SUPPORT_3_ROTATES.addBox(-3F, -19F, -1F, 1, 37, 2); - SUPPORT_3_ROTATES.setRotationPoint(0F, 0F, 0F); - SUPPORT_3_ROTATES.setTextureSize(256, 256); - SUPPORT_3_ROTATES.mirror = true; - setRotation(SUPPORT_3_ROTATES, 0F, 0F, 0F); - } - - public void render(float rotation, float size) { - BASE.render(size); - SUPPORT_1_ROTATES.render(size); - MECHANISM_ROTATES.render(size); - MECHANISM_ROTATES.rotateAngleX = rotation; - PANEL_1_ROTATES.render(size); - PANEL_1_ROTATES.rotateAngleX = rotation; - PANEL_2_ROTATES.render(size); - PANEL_2_ROTATES.rotateAngleX = rotation; - PANEL_2_SUPPORT_1_ROTATES.render(size); - PANEL_2_SUPPORT_1_ROTATES.rotateAngleX = rotation; - PANEL_2_SUPPORT_2_ROTATES.render(size); - PANEL_2_SUPPORT_2_ROTATES.rotateAngleX = rotation; - PANEL_2_SUPPORT_3_ROTATES.render(size); - PANEL_2_SUPPORT_3_ROTATES.rotateAngleX = rotation; - PANEL_2_SUPPORT_4_ROTATES.render(size); - PANEL_2_SUPPORT_4_ROTATES.rotateAngleX = rotation; - PANEL_1_SUPPORT_1_ROTATES.render(size); - PANEL_1_SUPPORT_1_ROTATES.rotateAngleX = rotation; - PANEL_1_SUPPORT_2_ROTATES.render(size); - PANEL_1_SUPPORT_2_ROTATES.rotateAngleX = rotation; - PANEL_1_SUPPORT_3_ROTATES.render(size); - PANEL_1_SUPPORT_3_ROTATES.rotateAngleX = rotation; - PANEL_1_SUPPORT_4_ROTATES.render(size); - PANEL_1_SUPPORT_4_ROTATES.rotateAngleX = rotation; - SUPPORT_2_ROTATES.render(size); - SUPPORT_3_ROTATES.render(size); + textureWidth = 128; + textureHeight = 64; + + foot1 = new ModelRenderer(this, 16, 30); + foot1.addBox(16F, 13F, -2F, 6, 1, 4); + foot1.setRotationPoint(0F, 0F, 0F); + foot1.setTextureSize(128, 64); + foot1.mirror = true; + setRotation(foot1, 0F, 0F, 0.7330383F); + foot1.mirror = false; + foot2 = new ModelRenderer(this, 16, 23); + foot2.addBox(-2F, 13F, -22F, 4, 1, 6); + foot2.setRotationPoint(0F, 0F, 0F); + foot2.setTextureSize(128, 64); + foot2.mirror = true; + setRotation(foot2, 0.7330383F, 0F, 0F); + foot3 = new ModelRenderer(this, 16, 30); + foot3.addBox(-22F, 13F, -2F, 6, 1, 4); + foot3.setRotationPoint(0F, 0F, 0F); + foot3.setTextureSize(128, 64); + foot3.mirror = true; + setRotation(foot3, 0F, 0F, -0.7330383F); + foot1side = new ModelRenderer(this, 16, 35); + foot1side.addBox(4F, 14F, -2F, 1, 8, 4); + foot1side.setRotationPoint(0F, 0F, 0F); + foot1side.setTextureSize(128, 64); + foot1side.mirror = true; + setRotation(foot1side, 0F, 0F, 0F); + foot1side.mirror = false; + foot2side = new ModelRenderer(this, 0, 47); + foot2side.addBox(-2F, 9F, -5F, 4, 13, 3); + foot2side.setRotationPoint(0F, 0F, 0F); + foot2side.setTextureSize(128, 64); + foot2side.mirror = true; + setRotation(foot2side, 0F, 0F, 0F); + foot3side = new ModelRenderer(this, 26, 35); + foot3side.addBox(-4.866667F, 12F, -2F, 1, 8, 4); + foot3side.setRotationPoint(0F, 2F, 0F); + foot3side.setTextureSize(128, 64); + foot3side.mirror = true; + setRotation(foot3side, 0F, 0F, 0F); + smallfoot = new ModelRenderer(this, 38, 33); + smallfoot.addBox(-0.5F, 22F, 5F, 1, 2, 1); + smallfoot.setRotationPoint(0F, 0F, 0F); + smallfoot.setTextureSize(128, 64); + smallfoot.mirror = true; + setRotation(smallfoot, 0F, 0F, 0F); + base = new ModelRenderer(this, 61, 42); + base.addBox(-4F, 10F, -4F, 8, 13, 8); + base.setRotationPoint(0F, 0F, 0F); + base.setTextureSize(128, 64); + base.mirror = true; + setRotation(base, 0F, 0F, 0F); + outputbox = new ModelRenderer(this, 36, 36); + outputbox.addBox(-4F, 18F, 4F, 8, 7, 4); + outputbox.setRotationPoint(0F, -4F, 0F); + outputbox.setTextureSize(128, 64); + outputbox.mirror = true; + setRotation(outputbox, 0F, 0F, 0F); + outputboxbottom = new ModelRenderer(this, 42, 31); + outputboxbottom.addBox(-2F, 21F, 4F, 4, 1, 4); + outputboxbottom.setRotationPoint(0F, 0F, 0F); + outputboxbottom.setTextureSize(128, 64); + outputboxbottom.mirror = true; + setRotation(outputboxbottom, 0F, 0F, 0F); + beam = new ModelRenderer(this, 0, 14); + beam.addBox(-2F, -19F, -2F, 4, 29, 4); + beam.setRotationPoint(0F, 0F, 0F); + beam.setTextureSize(128, 64); + beam.mirror = true; + setRotation(beam, 0F, 0F, 0F); + connectorbox = new ModelRenderer(this, 14, 47); + connectorbox.addBox(-2.5F, -21F, -2.5F, 5, 3, 5); + connectorbox.setRotationPoint(0F, 0F, 0F); + connectorbox.setTextureSize(128, 64); + connectorbox.mirror = true; + setRotation(connectorbox, 0F, 0F, 0F); + panelpole = new ModelRenderer(this, 0, 0); + panelpole.addBox(-15F, -20.5F, -0.5F, 30, 2, 1); + panelpole.setRotationPoint(0F, 0F, 0F); + panelpole.setTextureSize(128, 64); + panelpole.mirror = true; + setRotation(panelpole, 0F, 0F, 0F); + Shape5 = new ModelRenderer(this, 70, 10); + Shape5.addBox(3F, -21F, -23.8F, 10, 1, 16); + Shape5.setRotationPoint(0F, 0F, 0F); + Shape5.setTextureSize(128, 64); + Shape5.mirror = true; + setRotation(Shape5, 0F, 0F, 0F); + Shape6 = new ModelRenderer(this, 70, 10); + Shape6.addBox(-13F, -21F, -23.8F, 10, 1, 16); + Shape6.setRotationPoint(0F, 0F, 0F); + Shape6.setTextureSize(128, 64); + Shape6.mirror = true; + setRotation(Shape6, 0F, 0F, 0F); + Shape7 = new ModelRenderer(this, 70, 10); + Shape7.addBox(-13F, -21F, 7.8F, 10, 1, 16); + Shape7.setRotationPoint(0F, 0F, 0F); + Shape7.setTextureSize(128, 64); + Shape7.mirror = true; + setRotation(Shape7, 0F, 0F, 0F); + Shape8 = new ModelRenderer(this, 70, 10); + Shape8.addBox(3F, -21F, 7.8F, 10, 1, 16); + Shape8.setRotationPoint(0F, 0F, 0F); + Shape8.setTextureSize(128, 64); + Shape8.mirror = true; + setRotation(Shape8, 0F, 0F, 0F); + bar = new ModelRenderer(this, 60, 30); + bar.addBox(12.7F, -20.5F, -16F, 1, 1, 33); + bar.setRotationPoint(0F, 0F, 0F); + bar.setTextureSize(128, 64); + bar.mirror = true; + setRotation(bar, 0F, 0F, 0F); + bar1 = new ModelRenderer(this, 60, 30); + bar1.addBox(2.6F, -20.5F, -16F, 1, 1, 33); + bar1.setRotationPoint(0F, 0F, 0F); + bar1.setTextureSize(128, 64); + bar1.mirror = true; + setRotation(bar1, 0F, 0F, 0F); + bar2 = new ModelRenderer(this, 60, 30); + bar2.addBox(-3.6F, -20.5F, -16F, 1, 1, 33); + bar2.setRotationPoint(0F, 0F, 0F); + bar2.setTextureSize(128, 64); + bar2.mirror = true; + setRotation(bar2, 0F, 0F, 0F); + bar3 = new ModelRenderer(this, 60, 30); + bar3.addBox(-13.7F, -20.5F, -16F, 1, 1, 33); + bar3.setRotationPoint(0F, 0F, 0F); + bar3.setTextureSize(128, 64); + bar3.mirror = true; + setRotation(bar3, 0F, 0F, 0F); + Shape9 = new ModelRenderer(this, 16, 8); + Shape9.addBox(3F, -21F, -6.5F, 10, 1, 13); + Shape9.setRotationPoint(0F, 0F, 0F); + Shape9.setTextureSize(128, 64); + Shape9.mirror = true; + setRotation(Shape9, 0F, 0F, 0F); + Shape10 = new ModelRenderer(this, 16, 8); + Shape10.addBox(-13F, -21F, -6.5F, 10, 1, 13); + Shape10.setRotationPoint(0F, 0F, 0F); + Shape10.setTextureSize(128, 64); + Shape10.mirror = true; + setRotation(Shape10, 0F, 0F, 0F); + Shape11 = new ModelRenderer(this, 70, 10); + Shape11.addBox(13.5F, -21F, 7.8F, 10, 1, 16); + Shape11.setRotationPoint(0F, 0F, 0F); + Shape11.setTextureSize(128, 64); + Shape11.mirror = true; + setRotation(Shape11, 0F, 0F, 0F); + Shape12 = new ModelRenderer(this, 16, 8); + Shape12.addBox(13.5F, -21F, -6.5F, 10, 1, 13); + Shape12.setRotationPoint(0F, 0F, 0F); + Shape12.setTextureSize(128, 64); + Shape12.mirror = true; + setRotation(Shape12, 0F, 0F, 0F); + Shape13 = new ModelRenderer(this, 70, 10); + Shape13.addBox(13.5F, -21F, -23.8F, 10, 1, 16); + Shape13.setRotationPoint(0F, 0F, 0F); + Shape13.setTextureSize(128, 64); + Shape13.mirror = true; + setRotation(Shape13, 0F, 0F, 0F); + Shape14 = new ModelRenderer(this, 70, 10); + Shape14.addBox(-23.5F, -21F, -23.8F, 10, 1, 16); + Shape14.setRotationPoint(0F, 0F, 0F); + Shape14.setTextureSize(128, 64); + Shape14.mirror = true; + setRotation(Shape14, 0F, 0F, 0F); + Shape15 = new ModelRenderer(this, 16, 8); + Shape15.addBox(-23.5F, -21F, -6.5F, 10, 1, 13); + Shape15.setRotationPoint(0F, 0F, 0F); + Shape15.setTextureSize(128, 64); + Shape15.mirror = true; + setRotation(Shape15, 0F, 0F, 0F); + Shape16 = new ModelRenderer(this, 70, 10); + Shape16.addBox(-23.5F, -21F, 7.8F, 10, 1, 16); + Shape16.setRotationPoint(0F, 0F, 0F); + Shape16.setTextureSize(128, 64); + Shape16.mirror = true; + setRotation(Shape16, 0F, 0F, 0F); + Shape17 = new ModelRenderer(this, 70, 10); + Shape17.addBox(13.5F, -21F, 7.8F, 10, 1, 16); + Shape17.setRotationPoint(0F, 0F, 0F); + Shape17.setTextureSize(128, 64); + Shape17.mirror = true; + setRotation(Shape17, 0F, 0F, 0F); + Shape18 = new ModelRenderer(this, 16, 8); + Shape18.addBox(13.5F, -21F, -6.5F, 10, 1, 13); + Shape18.setRotationPoint(0F, 0F, 0F); + Shape18.setTextureSize(128, 64); + Shape18.mirror = true; + setRotation(Shape18, 0F, 0F, 0F); + Shape19 = new ModelRenderer(this, 70, 10); + Shape19.addBox(13.5F, -21F, -23.8F, 10, 1, 16); + Shape19.setRotationPoint(0F, 0F, 0F); + Shape19.setTextureSize(128, 64); + Shape19.mirror = true; + setRotation(Shape19, 0F, 0F, 0F); } - + + public void render(float size) + { + foot1.render(size); + foot2.render(size); + foot3.render(size); + foot1side.render(size); + foot2side.render(size); + foot3side.render(size); + smallfoot.render(size); + base.render(size); + outputbox.render(size); + outputboxbottom.render(size); + beam.render(size); + connectorbox.render(size); + panelpole.render(size); + Shape5.render(size); + Shape6.render(size); + Shape7.render(size); + Shape8.render(size); + bar.render(size); + bar1.render(size); + bar2.render(size); + bar3.render(size); + Shape9.render(size); + Shape10.render(size); + Shape11.render(size); + Shape12.render(size); + Shape13.render(size); + Shape14.render(size); + Shape15.render(size); + Shape16.render(size); + Shape17.render(size); + Shape18.render(size); + Shape19.render(size); + } + private void setRotation(ModelRenderer model, float x, float y, float z) { model.rotateAngleX = x; diff --git a/common/mekanism/generators/client/render/RenderAdvancedSolarGenerator.java b/common/mekanism/generators/client/render/RenderAdvancedSolarGenerator.java index db3321273..bd91167ac 100644 --- a/common/mekanism/generators/client/render/RenderAdvancedSolarGenerator.java +++ b/common/mekanism/generators/client/render/RenderAdvancedSolarGenerator.java @@ -31,15 +31,15 @@ public class RenderAdvancedSolarGenerator extends TileEntitySpecialRenderer switch(tileEntity.facing) { - case 2: GL11.glRotatef(90, 0.0F, 1.0F, 0.0F); break; - case 3: GL11.glRotatef(270, 0.0F, 1.0F, 0.0F); break; - case 4: GL11.glRotatef(180, 0.0F, 1.0F, 0.0F); break; - case 5: GL11.glRotatef(0, 0.0F, 1.0F, 0.0F); break; + case 2: GL11.glRotatef(180, 0.0F, 1.0F, 0.0F); break; + case 3: GL11.glRotatef(0, 0.0F, 1.0F, 0.0F); break; + case 4: GL11.glRotatef(270, 0.0F, 1.0F, 0.0F); break; + case 5: GL11.glRotatef(90, 0.0F, 1.0F, 0.0F); break; } - GL11.glRotatef(180, 0f, 0f, 1f); + GL11.glRotatef(180, 0F, 0F, 1F); - model.render(0.0F, 0.06F); + model.render(0.0625F); GL11.glPopMatrix(); } } diff --git a/resources/assets/mekanism/render/AdvancedSolarGenerator.png b/resources/assets/mekanism/render/AdvancedSolarGenerator.png index 52a064745..707098ce7 100644 Binary files a/resources/assets/mekanism/render/AdvancedSolarGenerator.png and b/resources/assets/mekanism/render/AdvancedSolarGenerator.png differ