From 2fdf37f797305867d07bacec3df7c1307e4b1fa9 Mon Sep 17 00:00:00 2001 From: Aesen Vismea Date: Fri, 6 Mar 2015 05:35:18 -0500 Subject: [PATCH] Be more efficient --- .../farrago/client/render/RenderBlunderbussProjectile.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/gameminers/farrago/client/render/RenderBlunderbussProjectile.java b/src/main/java/com/gameminers/farrago/client/render/RenderBlunderbussProjectile.java index aadedd6..2db6004 100644 --- a/src/main/java/com/gameminers/farrago/client/render/RenderBlunderbussProjectile.java +++ b/src/main/java/com/gameminers/farrago/client/render/RenderBlunderbussProjectile.java @@ -10,6 +10,7 @@ import org.lwjgl.opengl.GL11; public class RenderBlunderbussProjectile extends Render { + private final ModelBox box = new ModelBox(new ModelRenderer(new ModelNull(16, 16)), 0, 0, 0f, 0f, 0f, 4, 4, 4, 1f); private static final ResourceLocation TEX = new ResourceLocation("textures/blocks/cobblestone.png"); @Override public void doRender(Entity projectile, double x, double y, double z, float yaw, float partialTicks) { @@ -18,7 +19,6 @@ public void doRender(Entity projectile, double x, double y, double z, float yaw, GL11.glScalef(0.25f, 0.25f, 0.25f); bindEntityTexture(projectile); Tessellator tess = Tessellator.instance; - ModelBox box = new ModelBox(new ModelRenderer(new ModelNull(16, 16)), 0, 0, 0f, 0f, 0f, 4, 4, 4, 1f); box.render(tess, 0.0625f); GL11.glPopMatrix(); }