fix unused armor slots showing up in gui
This commit is contained in:
parent
906517479f
commit
ae0b11272d
4 changed files with 4 additions and 5 deletions
|
@ -47,7 +47,7 @@ public class ContainerPlayer extends Container {
|
|||
return stack != null && stack.getItem() instanceof ItemArmor armor && armor.getArmorType().canUseInSlot(ContainerPlayer.this.thePlayer, type);
|
||||
}
|
||||
public String getTexture() {
|
||||
return ContainerPlayer.this.thePlayer.hasArmorSlot(type) ? (type.isRing() ? "ring" : type.getName()) : null;
|
||||
return ContainerPlayer.this.thePlayer.hasArmorSlot(type) ? (type.isRing() ? "ring" : type.getName()) : "";
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue