这是什么?
Fabric Seasons: Extras 和 Dye Depot 都是优秀的模组,但它们彼此不兼容。具体来说,当安装任何染料模组时,Seasons: Extras 就会崩溃。本模组修复了该问题,使这些模组能够共存运行。
我们是如何走到这一步的?
今天早上我尝试在我的整合包中安装 Fabric Seasons: Extras,结果直接撞上了 issue #24。在缩小范围确定是哪个模组引发冲突并检查源代码后,我发现有人为此提交过合并请求(pull request),但已经快一年了,该请求仍未被合并。
实现这个修复似乎很简单,于是我决定自己制作一个小模组来实现同样的修复。非常感谢 Fabric Discord 社区里的各位,Mixin 又发生了变化,而大家非常耐心。
这究竟做了什么?
本模组使用 Mixin 注入来修改 Fabric Seasons: Extras 中的两个常量,使其去获取游戏中实际的染料数量,而不是假设只有 16 种。这样可以防止 Java 在处理超过 16 种染料时发生异常。简而言之,它实现了 这里 的内容,但是通过 Mixin 的方式。
许可证
这是 ARR(All Rights Reserved,保留所有权利)。我没有使用任何人的代码,所有内容均为我自己编写。我已经受够了模组的重新上传行为,此许可证是我努力阻止这种行为的一部分。
你可以将此模组放入整合包或在 YouTube 视频中使用。由于这是一个小型修复,我不要求对此类用途进行署名。它是一个 Mixin。
如果你在任何地方看到我的模组被重新上传,但不是在我 Modrinth 账户 obsidian29 下发布的,那它已经被盗用了,我们也不知道上传者可能对模组做了其他什么手脚。请小心行事,不要奖励窃取他人模组的行为,享受游戏吧。
What is this?
Fabric Seasons: Extras and Dye Depot are both great mods, but they don't like each other. Specifically, Seasons: Extras crashes when any dye mod is installed. This mod fixes that and allows the mods to run together.
How did we get here?
I tried installing Fabric Seasons: Extras in my modpack this morning and ran face-first into issue #24. After narrowing down which mod it was and checking the source code, I discovered that someone had made a pull request for it, but it's been almost a year and that has not been merged.
It seemed trivial to make a small mod to implement the same fix myself, so I did. Much thanks to those on the Fabric Discord, mixins have changed again and they were very patient.
What does this actually do?
This mod uses mixin injection to alter two constants in Fabric Seasons: Extras, making them reach for the actual amount of dyes in the game instead of assuming there are 16. This prevents Java from having a conniption fit when there are actually more than 16 dyes. In short, it implements this but mixins.
Licensing
This is ARR, I didn't use anyone else's code and what was written is mine. I've had enough of mod reposting and this licensing is part of my effort to stop it.
Assume that you may put this in a modpack or use it in a YouTube video. As it's a small fix, I don't require attribution for such things. It's a mixin.
If you see any of my mods reposted anywhere but right on Modrinth under the account obsidian29, it has been stolen and we don't know what else they might have been willing to do to the mod. Be safe, don't reward theft of people's mods, enjoy the game.
评论 0
登录后参与评分
还没有评论,来抢沙发吧