try fix definition issue

This commit is contained in:
alexcrea 2025-07-28 09:49:13 +02:00
parent 179b8db090
commit d92a97781c
Signed by: alexcrea
GPG key ID: E346CD16413450E3

View file

@ -18,7 +18,7 @@ public class CAEEPreV5Enchantment extends CABukkitEnchantment implements Additio
@NotNull Definition definition;
public CAEEPreV5Enchantment(@NotNull CustomEnchantment enchantment) {
super(enchantment.getBukkitEnchantment(), EnchantmentRarity.getRarity(enchantment.getDefinition().getAnvilCost()));
super(enchantment.getBukkitEnchantment(), getRarity(enchantment.getBukkitEnchantment()));
this.eeenchantment = enchantment;
this.definition = (Definition) enchantment.getDefinition();