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

Fixed crafting recipes not loading

This commit is contained in:
Auxilor
2021-07-23 23:43:08 +01:00
parent e14746fbd0
commit 6cfe1de709

View File

@@ -159,9 +159,7 @@ public class ArmorSet {
for (ArmorSlot slot : ArmorSlot.values()) {
ItemStack item = construct(slot, (JSONConfig) this.getConfig().getSubsection(slot.name().toLowerCase()), false);
items.put(slot, item);
if (this.getConfig().getBool("enabled")) {
constructRecipe(slot, this.getConfig().getSubsection(slot.name().toLowerCase()), item);
}
constructRecipe(slot, this.getConfig().getSubsection(slot.name().toLowerCase()), item);
ItemStack advancedItem = construct(slot, (JSONConfig) this.getConfig().getSubsection(slot.name().toLowerCase()), true);
advancedItems.put(slot, advancedItem);