**Full Changelog**: [Here](https://github.com/AzusaKe/Halo/compare/v2.4.2-forge-1.20.1-adapter.1...v2.4.2-forge-1.20.1-adapter.2)
---
- Fixed world create/load crashes when Yes Steve Model is installed. Halo's YSM capture used `@ModifyArgs`, which generates Mixin synthetic `org.spongepowered.asm.synthetic.args.Args$1`; Forge 1.20.1 `ModuleClassLoader` often cannot resolve that class while YSM's resource reload constructs renderer subclasses, aborting datapack load with `NoClassDefFoundError`.
- Replaced `@ModifyArgs` with `@Redirect` on the same base-model call site. The hook still receives the animated model and prepared `PoseStack` (including body/head yaw), then invokes the original interface default render method through a MethodHandle so rendering is unchanged and no Args synthetics are generated.
- Kept the change inside `compat/ysm` only. EMF/Iris compatibility, HaloCore pin `1d3cf90` (2.4.2), definition schema, saves, networking, and public API v2 are unchanged. Minecraft 1.20.1 Forge players still install a single Halo JAR.
- Note that modpacks shipping an older `halo_mod_config.json` with `experimentalYsmAnchorEnabled=false` disable precise YSM head anchors by design; set the flag to `true` for experimental YSM tracking.
- Automated tests passed on this platform. The user retested with YSM in a full pack: creating a new world, entering an existing world, and YSM player/entity head yaw/pitch halo anchors all behaved correctly.
---
- 修复安装 Yes Steve Model 时创建/读取世界崩溃。Halo 的 YSM 捕获原先使用 `@ModifyArgs`,会生成 Mixin 合成类 `org.spongepowered.asm.synthetic.args.Args$1`;Forge 1.20.1 的 `ModuleClassLoader` 在 YSM 资源重载构造渲染器子类时经常无法解析该类,导致数据包加载以 `NoClassDefFoundError` 中止。
- 在同一基模型调用点改为 `@Redirect`。钩子仍取得动画模型与已就绪的 `PoseStack`(含身体/头部 yaw),再经 MethodHandle 调用原接口默认渲染方法,渲染行为不变,且不再生成 Args 合成类。
- 改动仅限 `compat/ysm`。EMF/Iris 兼容、HaloCore 指针 `1d3cf90`(2.4.2)、定义 schema、存档、网络及公开 API v2 均不变。Minecraft 1.20.1 Forge 玩家仍只需安装一个 Halo JAR。
- 若整合包夹带旧版 `halo_mod_config.json` 且 `experimentalYsmAnchorEnabled=false`,按设计会关闭 YSM 精确头部锚点;需要实验性 YSM 追踪时请将该配置设为 `true`。
- 本平台自动测试全部通过。用户在含 YSM 的整合包中复测:创建新世界、进入旧世界、YSM 玩家与实体头部 yaw/pitch 光环锚点均正常。
Developer information
Projects on Modrinth are automatically available through a Maven repository for use with JVM build tools such as Gradle.
maven { name = "Modrinth"; url = "https://api.modrinth.com/maven" }