Makes sure to use the name enchantment cost internally

This commit is contained in:
2022-08-08 18:48:46 +02:00
parent 4be950a327
commit 7dc2228781
3 changed files with 14 additions and 14 deletions
src/main/java/net/knarcraft/blacksmith

@ -147,7 +147,7 @@ public class EconomyManager {
GlobalSettings settings = BlacksmithPlugin.getInstance().getSettings();
double price = 0;
for (Enchantment enchantment : item.getEnchantments().keySet()) {
price += settings.getEnchantmentModifier(enchantment) * item.getEnchantmentLevel(enchantment);
price += settings.getEnchantmentCost(enchantment) * item.getEnchantmentLevel(enchantment);
}
return price;
}