use correct anvil cost

did I not already fixed it ?
This commit is contained in:
alexcrea 2025-07-27 07:01:53 +02:00
parent 3a72442e96
commit b011edd606
Signed by: alexcrea
GPG key ID: E346CD16413450E3

View file

@ -134,8 +134,7 @@ public class CABukkitEnchantment extends CAEnchantmentBase {
} }
private static EnchantmentRarity findRarity(Enchantment enchantment) { private static EnchantmentRarity findRarity(Enchantment enchantment) {
//TODO use non deprecated value return EnchantmentRarity.getRarity(enchantment.getAnvilCost());
return EnchantmentRarity.getRarity(enchantment.getRarity().getWeight());
} }
@Override @Override