这是一个专为我的 Canvas 整合包 设计的模组,旨在强制修复在 1.18.2 Fabric 整合包中偶尔出现的两个严重 Bug:NaN 饱和值问题以及生成的物品带有不兼容附魔的问题。
-
出于某种原因,服务器端的饱和值可能会变成负数或不正确的值,这在整合包中尤为常见。这个问题几乎无法察觉,即使使用详尽的二分法测试也非常令人头疼。现在这个奇怪的行为已被修复。当检测到无效(NaN/无限)的饱和值时,它会将玩家的饱和值重置为正常值(4)。
-
修复了非法附魔物品的生成问题;在使用添加了各种不同附魔的模组时,游戏有时会忽略附魔之间的代码不兼容性,并将其应用于战利品生成的物品上,包括原版硬编码的附魔。即使是像 Enchantment Groups 这样重构整合包附魔(不)兼容性的模组也无法解决此问题。该模组会自动读取游戏中哪些附魔互不兼容,并正确纠正这一行为。例如,当检测到护甲上同时存在保护(Protection)和火焰保护(Fire Protection)时,会随机移除其中一个。附魔书会被忽略,但当将其放入铁砧与物品合并后,它会自行修正。该模组应与所有附魔模组兼容。
A mod dedicated for my Canvas modpack that forcefully fixes two bugs that are sometimes prominent in 1.18.2 fabric modpacks related to NaN saturation values & generated items with incompatible enchantments.
-
For whatever reason saturation on the server-side can reach negative or incorrect values, especially in modpacks. This is almost impossible to detect and very annoying to test, even with a thorough binary search. This weird behavior is now fixed. Upon detecting invalid (NaN/Infinite) saturation value, it will reset the player's saturation value back to normal (4).
-
Fixed illegal enchanted items from generating; when using mods that add various different enchantments the game would sometimes ignore the coded incompatabilities with one another onto a loot-generated item, including hardcoded ones from vanilla. Even mods like Enchantment Groups that restructure enchantment (in)compatibilites for modpacks wouldn't work. This mod automatically reads from the game what enchantments are suppose to be incompatible with one another and properly corrects this behavior. For example, Protection and Fire Protection on an item will have one of them removed randomly when detected on an armor piece. Enchanted books are ignored, but when put into an anvil with an item it will fix itself post-combination. It should be compatible with every enchantment mod.
评论 0
登录后参与评分
还没有评论,来抢沙发吧