9
0
mirror of https://github.com/Auxilor/EcoArmor.git synced 2025-12-27 10:59:22 +00:00

Fixed crafting bug

This commit is contained in:
Auxilor
2021-09-05 12:42:22 +01:00
parent 5cb78a6eb6
commit 8ff204fd74
2 changed files with 3 additions and 1 deletions

View File

@@ -158,6 +158,8 @@ public class ArmorSet {
advancedPotionEffects.put(effect, level);
}
ArmorSets.addNewSet(this);
for (ArmorSlot slot : ArmorSlot.values()) {
ItemStack item = construct(slot, this.getConfig().getSubsection(slot.name().toLowerCase()), false);
items.put(slot, item);

View File

@@ -52,7 +52,7 @@ public class ArmorSets {
}
for (JSONConfig setConfig : plugin.getEcoArmorJson().getSubsections("sets")) {
addNewSet(new ArmorSet(setConfig, plugin));
new ArmorSet(setConfig, plugin);
}
}