mekcompression_factories-0.1.1.jar
Curse Maven Snippet
What's new
More Compressed Mek Factories 0.1.1
中文
本版本相对旧版 0.1.0 进行了 1.21.1 NeoForge 代码线重构与兼容性修复。
主要更新
修复扩展工厂类型导致的启动崩溃:不再调用 Mekanism 只支持原生工厂数量的
FactoryBuilder.createFactory,避免 Evolved Mekanism 的ALLOYING工厂触发ArrayIndexOutOfBoundsException。真正兼容扩展工厂类型:Evolved 合金工厂保留三输入槽、配方匹配和 controller 逻辑;Mekanism Extras 使用其自身的 factory、tile 和 controller 路径。兼容层不仅注册方块,同时为扩展工厂补充压缩、并行、容量和升级支持。
保留原生工厂功能:继续支持原生菜单、物品/流体/化学输入、侧面配置、配方校验、JEI 配方条件和升级槽。
支持完整的压缩工厂类型:包括冶炼、富集、粉碎、压缩、组合、纯化、注入、灌注和锯木工厂,并支持
mekmi、Mekanism Extras 提供的额外阶段和阶梯。修复速度超频和无损超频升级:
mekoverclock的速度升级与无损超频升级现在会参与工厂的有效 tick 和 exact 并行计算,工厂可以正常使用这些升级。修正加速火把并行叠加规则:同一个
paralleltorchprovider 管理的多根火把按照以下公式叠加:1 + Σ(火把倍率 - 1)不同 provider 的并行结果仍然按照独立倍率相乘,避免同一 provider 的多根火把被错误计算成平方。
统一容量和并行计算:压缩倍率、外部并行、超频升级、物品/流体/化学槽位容量、能量功耗和能量缓存统一使用 exact 操作数。
修复能量缓存没有乘并行的问题:工厂能量容量会跟随实际压缩倍率、外部并行、超频和无损超频同步扩大,不再出现功率和并行已经变大但缓存仍停留在旧数值的问题。
修复缩容导致的存量异常:移除加速器或降低并行后,容量使用
max(请求容量, 当前存量),不会直接清空已经存储的物品、流体、化学品或能量。改用精确大数能量模型:能量以 Flux Networks Ultimate Addon 的
BigNumber为权威类型;并行数以及物品、流体、化学槽位容量使用AbsoluteInteger。修复
long溢出和9.223E假值:工厂 UI、菜单同步、能量条和持久化数据不再依赖原生SyncableLong保存精确值,避免Long.MAX_VALUE覆盖真实能量。修正并行单位显示:并行数使用独立单位
K、M、B、T、Q、S、s、O、N、D,不再错误使用 Flux FE 的单位表。
依赖与兼容
- Minecraft:1.21.1
- Loader:NeoForge
- 必需前置:
parallelapifluxnetworks_ultimate_addon
- 可选兼容:
mekmiMekanism ExtrasModern Industrialization
- 不要与旧版合并包
mekcompression-0.1.0.jar同时安装。
English
This version contains a major 1.21.1 NeoForge rewrite and compatibility update compared with the old 0.1.0 line.
Changes
Fixed the startup crash caused by extended factory types by replacing Mekanism's ordinal-based
FactoryBuilder.createFactorypath.Added real compatibility for Evolved Mekanism alloying factories, including their three input lanes, recipe matching, and controller behavior.
Added a safe compatibility path for Mekanism Extras factories instead of merely registering additional blocks.
Preserved native factory menus, item/fluid/chemical inputs, side configuration, recipe validation, JEI conditions, and upgrade slots.
Fixed normal speed overclock and lossless overclock upgrades so they affect the factory's effective ticks and exact parallel calculation.
Corrected accelerator stacking. Multiple torches owned by the same
paralleltorchprovider now use:1 + Σ(torch factor - 1)Independent providers still multiply their results.
Unified compression, external parallelism, overclocking, slot capacity, power usage, and energy-buffer capacity around the same exact operation count.
Fixed factory energy buffers not scaling with actual parallelism.
Capacity shrink now uses
max(requested capacity, stored amount)so existing contents are not silently destroyed.Energy now uses Flux Ultimate Addon's
BigNumber; parallelism and item/fluid/chemical slot capacities useAbsoluteInteger.Fixed
SyncableLongoverwriting exact values and displaying fake9.223E/Long.MAX_VALUEvalues.Separated parallel display units from Flux FE units.
Do not install the legacy merged mekcompression-0.1.0.jar together with this addon.
This mod has no additional files

