Fix armor

This commit is contained in:
Matthew Messinger 2015-08-02 00:07:38 -04:00
parent 2610610c76
commit 40e5044b83
3 changed files with 6 additions and 5 deletions

View file

@ -84,7 +84,7 @@ public abstract class ModelPony extends ModelPlayer {
} }
} }
private void setModelVisibilities(AbstractClientPlayer clientPlayer) { protected void setModelVisibilities(AbstractClientPlayer clientPlayer) {
ModelPlayer modelplayer = this; ModelPlayer modelplayer = this;
if (clientPlayer.isSpectator()) { if (clientPlayer.isSpectator()) {

View file

@ -3,6 +3,7 @@ package com.minelittlepony.minelp.model.pony.armor;
import com.minelittlepony.minelp.model.pony.pm_newPonyAdv; import com.minelittlepony.minelp.model.pony.pm_newPonyAdv;
import com.minelittlepony.minelp.renderer.AniParams; import com.minelittlepony.minelp.renderer.AniParams;
import net.minecraft.client.entity.AbstractClientPlayer;
import net.minecraft.client.model.ModelRenderer; import net.minecraft.client.model.ModelRenderer;
import net.minecraft.client.renderer.ItemRenderer; import net.minecraft.client.renderer.ItemRenderer;
import net.minecraft.client.renderer.entity.RenderManager; import net.minecraft.client.renderer.entity.RenderManager;
@ -294,11 +295,12 @@ public class pm_newPonyArmor extends pm_newPonyAdv {
this.renderDrop(itemrenderer, entity, this.bipedRightArm, 1.0F, -0.0625F, 0.8375F, 0.0625F); this.renderDrop(itemrenderer, entity, this.bipedRightArm, 1.0F, -0.0625F, 0.8375F, 0.0625F);
} }
@Override
protected void setModelVisibilities(AbstractClientPlayer clientPlayer) {}
@Override @Override
public void setInvisible(boolean invisible) { public void setInvisible(boolean invisible) {
super.setInvisible(invisible); super.setInvisible(invisible);
this.bipedLeftArm.showModel = invisible;
this.bipedRightArm.showModel = invisible;
this.Bodypiece.showModel = invisible; this.Bodypiece.showModel = invisible;
extBody.showModel = invisible; extBody.showModel = invisible;
for (ModelRenderer m : extHead) { for (ModelRenderer m : extHead) {

View file

@ -31,8 +31,7 @@ import net.minecraft.util.ResourceLocation;
public class LayerPonyArmor implements LayerRenderer { public class LayerPonyArmor implements LayerRenderer {
private static final ResourceLocation ENCHANTED_ITEM_GLINT_RES = new ResourceLocation( private static final ResourceLocation ENCHANTED_ITEM_GLINT_RES = new ResourceLocation("textures/misc/enchanted_item_glint.png");
"textures/misc/enchanted_item_glint.png");
private static final Map<String, ResourceLocation> field_110859_k = Maps.newHashMap(); private static final Map<String, ResourceLocation> field_110859_k = Maps.newHashMap();
private static final Map<String, ResourceLocation> ponyArmorMap = Maps.newHashMap(); private static final Map<String, ResourceLocation> ponyArmorMap = Maps.newHashMap();