mirror of
https://github.com/MineLittlePony/MineLittlePony.git
synced 2024-11-22 04:27:59 +01:00
Fix armor
This commit is contained in:
parent
2610610c76
commit
40e5044b83
3 changed files with 6 additions and 5 deletions
|
@ -84,7 +84,7 @@ public abstract class ModelPony extends ModelPlayer {
|
|||
}
|
||||
}
|
||||
|
||||
private void setModelVisibilities(AbstractClientPlayer clientPlayer) {
|
||||
protected void setModelVisibilities(AbstractClientPlayer clientPlayer) {
|
||||
ModelPlayer modelplayer = this;
|
||||
|
||||
if (clientPlayer.isSpectator()) {
|
||||
|
|
|
@ -3,6 +3,7 @@ package com.minelittlepony.minelp.model.pony.armor;
|
|||
import com.minelittlepony.minelp.model.pony.pm_newPonyAdv;
|
||||
import com.minelittlepony.minelp.renderer.AniParams;
|
||||
|
||||
import net.minecraft.client.entity.AbstractClientPlayer;
|
||||
import net.minecraft.client.model.ModelRenderer;
|
||||
import net.minecraft.client.renderer.ItemRenderer;
|
||||
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);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void setModelVisibilities(AbstractClientPlayer clientPlayer) {}
|
||||
|
||||
@Override
|
||||
public void setInvisible(boolean invisible) {
|
||||
super.setInvisible(invisible);
|
||||
this.bipedLeftArm.showModel = invisible;
|
||||
this.bipedRightArm.showModel = invisible;
|
||||
this.Bodypiece.showModel = invisible;
|
||||
extBody.showModel = invisible;
|
||||
for (ModelRenderer m : extHead) {
|
||||
|
|
|
@ -31,8 +31,7 @@ import net.minecraft.util.ResourceLocation;
|
|||
|
||||
public class LayerPonyArmor implements LayerRenderer {
|
||||
|
||||
private static final ResourceLocation ENCHANTED_ITEM_GLINT_RES = new ResourceLocation(
|
||||
"textures/misc/enchanted_item_glint.png");
|
||||
private static final ResourceLocation ENCHANTED_ITEM_GLINT_RES = new ResourceLocation("textures/misc/enchanted_item_glint.png");
|
||||
|
||||
private static final Map<String, ResourceLocation> field_110859_k = Maps.newHashMap();
|
||||
private static final Map<String, ResourceLocation> ponyArmorMap = Maps.newHashMap();
|
||||
|
|
Loading…
Reference in a new issue