1
0
Fork 0

fix unused armor slots showing up in gui

This commit is contained in:
Sen 2025-08-22 00:48:09 +02:00
parent 906517479f
commit ae0b11272d
Signed by: sen
GPG key ID: 3AC50A6F47D1B722
4 changed files with 4 additions and 5 deletions

View file

@ -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()) : "";
}
});
}