Fixed armor material loading

This commit is contained in:
Michael Hillcox 2020-11-21 17:33:24 +00:00
parent 67d10ba22e
commit cca5d78957
No known key found for this signature in database
GPG key ID: 971C5B254742488F

View file

@ -1,5 +1,6 @@
package de.ellpeck.actuallyadditions.common.materials; package de.ellpeck.actuallyadditions.common.materials;
import de.ellpeck.actuallyadditions.common.ActuallyAdditions;
import de.ellpeck.actuallyadditions.common.items.ActuallyItems; import de.ellpeck.actuallyadditions.common.items.ActuallyItems;
import net.minecraft.inventory.EquipmentSlotType; import net.minecraft.inventory.EquipmentSlotType;
import net.minecraft.item.IArmorMaterial; import net.minecraft.item.IArmorMaterial;
@ -39,7 +40,7 @@ public enum ArmorMaterials implements IArmorMaterial {
private final LazyValue<Ingredient> repairMaterial; private final LazyValue<Ingredient> repairMaterial;
ArmorMaterials(String name, int maxDamageFactor, int[] damageReductionAmountArray, int enchantability, SoundEvent soundEvent, float toughness, float knockbackResistance, Supplier<Ingredient> repairMaterial) { ArmorMaterials(String name, int maxDamageFactor, int[] damageReductionAmountArray, int enchantability, SoundEvent soundEvent, float toughness, float knockbackResistance, Supplier<Ingredient> repairMaterial) {
this.name = name; this.name = String.format("%s:%s", ActuallyAdditions.MOD_ID, name);
this.maxDamageFactor = maxDamageFactor; this.maxDamageFactor = maxDamageFactor;
this.damageReductionAmountArray = damageReductionAmountArray; this.damageReductionAmountArray = damageReductionAmountArray;
this.enchantability = enchantability; this.enchantability = enchantability;