fix nullpointerexception

This commit is contained in:
2025-12-28 20:10:57 +01:00
parent 86dd3c2b22
commit 81ed0e65dd
2 changed files with 12 additions and 18 deletions

View File

@@ -11,7 +11,7 @@ import static com.kasetoatz.superenchants.util.Util.getCustomLevel;
@Mixin(EnchantCommand.class)
public class EnchantCommandMixin
{
@Redirect(method="execute", at= @At(value = "INVOKE", target = "Lnet/minecraft/enchantment/Enchantment;getMaxLevel()I"))
@Redirect(method="execute", at=@At(value="INVOKE", target="Lnet/minecraft/enchantment/Enchantment;getMaxLevel()I"))
private static int execute(Enchantment enchant)
{
int custom = getCustomLevel(enchant);