Minor cleanup on RenderDart

This commit is contained in:
Cheeserolls 2015-04-25 17:16:38 +01:00
parent 51337af9f9
commit b0037b8fdf
1 changed files with 11 additions and 3 deletions

View File

@ -1,3 +1,11 @@
/*******************************************************************************
* Copyright 2015, the Biomes O' Plenty Team
*
* This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International Public License.
*
* To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/4.0/.
******************************************************************************/
package biomesoplenty.common.entities.projectiles;
import net.minecraft.client.renderer.GlStateManager;
@ -20,15 +28,15 @@ public class RenderDart extends Render
protected ResourceLocation[] textures;
public RenderDart(RenderManager p_i46193_1_)
public RenderDart(RenderManager renderManager)
{
super(p_i46193_1_);
super(renderManager);
int n = ItemDart.DartType.values().length;
this.textures = new ResourceLocation[n];
for (int i = 0; i < n; ++i)
{
this.textures[i] = new ResourceLocation("biomesoplenty:textures/entity/" + ItemDart.DartType.values()[i].getName() + ".png");
}
}
}
// TODO: de-obfuscate