Makes sure to use the name enchantment cost internally
This commit is contained in:
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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user