fix armor slots
This commit is contained in:
parent
2b9474beaf
commit
cea6c5773b
12 changed files with 51 additions and 20 deletions
|
@ -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("");
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue