1
0
Fork 0

fix armor slots

This commit is contained in:
Sen 2025-08-18 18:39:56 +02:00
parent 2b9474beaf
commit cea6c5773b
Signed by: sen
GPG key ID: 3AC50A6F47D1B722
12 changed files with 51 additions and 20 deletions

View file

@ -157,7 +157,7 @@ public abstract class GuiContainer extends Gui
}
Map<Attribute, Float> mods = stack.getAttributeModifiers();
mods.putAll(stack.getArmorModifiers(null));
mods.putAll(stack.getArmorModifiers(this.gm.player, null));
if(!mods.isEmpty()) {
list.add("");

View file

@ -13,6 +13,8 @@ public class LayerArachnoidArmor extends LayerArmor {
switch(slot) {
case CHESTPLATE:
case HELMET:
super.setModelPartVisible(model, slot);
break;
default:
model.setVisible(false);
break;