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 be2d284a6f
commit 12194709c5
Signed by: alexcrea
GPG key ID: E346CD16413450E3

View file

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