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