mirror of
https://github.com/alexcrea/CustomAnvil.git
synced 2026-06-23 08:14:00 +02:00
use correct anvil cost
did I not already fixed it ?
This commit is contained in:
parent
be2d284a6f
commit
12194709c5
1 changed files with 1 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue