Skip to content
This repository has been archived by the owner on May 2, 2018. It is now read-only.

Commit

Permalink
Be more efficient
Browse files Browse the repository at this point in the history
  • Loading branch information
Aesen Vismea committed Mar 6, 2015
1 parent debf6e2 commit 2fdf37f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand All @@ -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();
}
Expand Down

0 comments on commit 2fdf37f

Please sign in to comment.