From a38090a521f045c2f256733d06b97fd5853ece80 Mon Sep 17 00:00:00 2001 From: "Aidan C. Brady" Date: Wed, 25 Feb 2015 10:13:22 -0500 Subject: [PATCH] Fixed flamethrower scaling --- src/main/java/mekanism/client/render/entity/RenderFlame.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/mekanism/client/render/entity/RenderFlame.java b/src/main/java/mekanism/client/render/entity/RenderFlame.java index 6be32ba78..be6f6b847 100644 --- a/src/main/java/mekanism/client/render/entity/RenderFlame.java +++ b/src/main/java/mekanism/client/render/entity/RenderFlame.java @@ -19,7 +19,7 @@ public class RenderFlame extends Render public void doRender(EntityFlame entity, double x, double y, double z, float f, float partialTick) { float alpha = (float)(entity.ticksExisted+partialTick)/(float)EntityFlame.LIFESPAN; - float size = alpha*8; + float size = (float)Math.pow(2*alpha, 2); GL11.glPushMatrix(); MekanismRenderer.glowOn(); @@ -39,7 +39,7 @@ public class RenderFlame extends Render float f3 = 0.5F; float f4 = (float)(0 + i * 10) / 32F; float f5 = (float)(5 + i * 10) / 32F; - float scale = 0.05625F*(0.8F+alpha); + float scale = 0.05625F*(0.8F+size); GL11.glEnable(GL12.GL_RESCALE_NORMAL); GL11.glRotatef(45F, 1.0F, 0.0F, 0.0F);