Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

铁砧界面注入失败 | 与模组 Over Enchanted 冲突 #1636

Open
5 tasks done
Andy-Elizabeth-mouse opened this issue Jan 27, 2025 · 0 comments
Open
5 tasks done

Comments

@Andy-Elizabeth-mouse
Copy link

Andy-Elizabeth-mouse commented Jan 27, 2025

请确认您已完成以下几件事

  • 正在使用最新的 Arclight
  • 已为所有插件及模组安装依赖
  • 已为所有插件及模组更新至最新版
  • 不可在 Spigot 复现
  • 不可在 Forge 复现

Arclight 版本

arclight-1.20.1-1.0.6-SNAPSHOT-c1e6367

Java 版本 | 操作系统

系统: Linux 6.1.0-26-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.112-1 (2024-09-30) x86_64 GNU/Linux
Java: "21.0.2" 2024-01-16 LTS (build 21.0.2+13-LTS-58)

相关 Mod/插件 的名称及版本

over-enchanted-forge-1.3.0

错误描述

[main/FATAL] [mixin/]: Mixin apply failed overenchanted.mixins.json:UnlimitedLevelsMixin -> net.minecraft.world.inventory.AnvilMenu: org.spongepowered.asm.mixin.injection.throwables.InvalidInjectionException @At("INVOKE") on net/minecraft/world/inventory/AnvilMenu::unlimitedLevels with priority 500 cannot inject into net/minecraft/world/inventory/AnvilMenu::m_6640_()V merged by io.izzel.arclight.common.mixin.core.world.inventory.RepairContainerMixin with priority 500 [PREINJECT Applicator Phase -> overenchanted.mixins.json:UnlimitedLevelsMixin -> Prepare Injections ->  -> redirect$zza000$unlimitedLevels(Lnet/minecraft/world/item/enchantment/Enchantment;)I -> Prepare]
org.spongepowered.asm.mixin.injection.throwables.InvalidInjectionException: @At("INVOKE") on net/minecraft/world/inventory/AnvilMenu::unlimitedLevels with priority 500 cannot inject into net/minecraft/world/inventory/AnvilMenu::m_6640_()V merged by io.izzel.arclight.common.mixin.core.world.inventory.RepairContainerMixin with priority 500 [PREINJECT Applicator Phase -> overenchanted.mixins.json:UnlimitedLevelsMixin -> Prepare Injections ->  -> redirect$zza000$unlimitedLevels(Lnet/minecraft/world/item/enchantment/Enchantment;)I -> Prepare]

详见log

注:该模组核心代码仅以下几行

@Mixin(priority = 500, value = AnvilScreenHandler.class)
public abstract class UnlimitedLevelsMixin {

	@Redirect(method = "updateResult", at = @At(value = "INVOKE", target = "Lnet/minecraft/enchantment/Enchantment;getMaxLevel()I"))
	private int unlimitedLevels(Enchantment enchantment) {
		return Integer.MAX_VALUE;
	}
}

复现步骤

  1. 获取最新版Arclight
  2. 在mods文件夹中添加over-enchanted-forge-1.3.0.jar
  3. 启动

报错信息

debug-1.log

复现用压缩包下载链接(可选)

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant