此模组是一个简单的修复方案,用于解决着色器 ID 补丁器之间的冲突。
这主要是因为 Fabric API 自 0.77.0 版本起内置了此功能。与大多数仅将命名空间(Mod IDs)与 :shaders/core/ 及带扩展名的文件名拼接在一起的模组不同,FAPI 的工作方式不同,最终生成的 ID 类似于 create:create:glowing_shaders.json,这可能导致崩溃。
一个显著的例子是安装 FAPI 与 Satin API 一起使用时。Satin API 未设置优先级以确保在 FAPI 之后执行 mixin,导致 ID 被修改了两次。虽然这种情况仅在开发环境中因加载顺序随机而发生,但我们无法确定其他模组是否也会出现类似问题。而 1.18.2 版本早已被遗忘,多数模组已放弃支持,本模组的创建正是为了确保一切正常运行。
如果你是普通用户,仅在游戏运行不正确且日志中持续出现重复命名空间的着色器 ID 消息时安装此模组。如果你是模组开发者,且依赖项因该问题发生冲突,请添加此模组并在可能的情况下给 JiJ 的模组点赞。如果你开发的模组引发了该问题并愿意修复,你可能只需将 mixin 优先级设置为更高的数值以延迟应用即可(这已解决了 Porting Lib 的问题)。
This mod is a simple fix to resolve the a conflict between shader ID patchers.
This is mostly due to Fabric API having this feature built-in since 0.77.0. Unlike most mods that just glue the namespace (Mod IDs), the :shaders/core/ and the file name with extension together, FAPI works differently that you will end up with IDs like create:create:glowing_shaders.json, which can lead to a crash.
A notable example is installing FAPI with Satin API. The latter does not have a priority set to do the mixin after FAPI and the IDs will just be modified twice. While this only happens in dev due to random loading order, we can't be sure this doesn't happen with other mods. And the 1.18.2 version is long forgotten, dropped by most mods, this mod is made just to be sure everything works correctly.
If you're a normal user, you should only install if your game doesn't work correctly, and you see the log keeps getting messages of shader IDs with dupe namespaces. If you're a modder and the dependencies are conflicting due to this issue, add this and please JiJ the mod if you can. If you make mods that cause the issue and you're willing to fix, you can probably just make your mixin priority a higher number to apply later (as this fixed the issue for Porting Lib).
评论 0
登录后参与评分
还没有评论,来抢沙发吧