diff options
author | â€huajijam <strhuaji@gmail.com> | 2019-03-18 20:52:30 +0800 |
---|---|---|
committer | â€huajijam <strhuaji@gmail.com> | 2019-03-18 20:52:30 +0800 |
commit | 8b090e1fd20eb4c301996b5e1dfeb78353e595e4 (patch) | |
tree | 52152dd767d195c76baa8fd8bacb14b105aaa146 /src/Java/gtPlusPlus/core/client | |
parent | 40d7e5da9f5b84213e2c3e4596fdc69b94bd523e (diff) | |
download | GT5-Unofficial-8b090e1fd20eb4c301996b5e1dfeb78353e595e4.tar.gz GT5-Unofficial-8b090e1fd20eb4c301996b5e1dfeb78353e595e4.tar.bz2 GT5-Unofficial-8b090e1fd20eb4c301996b5e1dfeb78353e595e4.zip |
fix a bug
Diffstat (limited to 'src/Java/gtPlusPlus/core/client')
-rw-r--r-- | src/Java/gtPlusPlus/core/client/renderer/RenderGiantChicken.java | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/src/Java/gtPlusPlus/core/client/renderer/RenderGiantChicken.java b/src/Java/gtPlusPlus/core/client/renderer/RenderGiantChicken.java index 59621ef830..cc1249280b 100644 --- a/src/Java/gtPlusPlus/core/client/renderer/RenderGiantChicken.java +++ b/src/Java/gtPlusPlus/core/client/renderer/RenderGiantChicken.java @@ -4,40 +4,12 @@ import cpw.mods.fml.relauncher.Side; import cpw.mods.fml.relauncher.SideOnly; import net.minecraft.client.model.ModelBase; import net.minecraft.client.renderer.entity.RenderChicken; -import net.minecraft.entity.passive.EntityChicken; -import net.minecraft.util.ResourceLocation; - -import gtPlusPlus.core.util.reflect.ReflectionUtils; @SideOnly(Side.CLIENT) public class RenderGiantChicken extends RenderChicken { - - /** - * Fancy reflective handling of nabbing the original chicken texture object, should save reload the texture to memory. :) - */ - private static final ResourceLocation chickenTexturesEx; - static { - ResourceLocation mChicken; - try { - mChicken = (ResourceLocation) ReflectionUtils.getField(RenderGiantChicken.class, "chickenTextures").get(null); - } - catch (IllegalArgumentException | IllegalAccessException | NoSuchFieldException e) { - mChicken = new ResourceLocation("textures/entity/chicken.png"); - } - chickenTexturesEx = mChicken; - } public RenderGiantChicken(ModelBase p_i1252_1_, float p_i1252_2_) { super(p_i1252_1_, p_i1252_2_); } - - /** - * Returns the location of an entity's texture. Doesn't seem to be called unless you call Render.bindEntityTexture. - */ - @Override - protected ResourceLocation getEntityTexture(EntityChicken p_110775_1_) - { - return chickenTexturesEx; - } }
\ No newline at end of file |