跳到正文

AE2 KeyCounter Overflow Fix

Fixes an integer overflow issue in Applied Energistics 2's `VariantCounter` that can cause AE2 key counts to overflow when approaching the `long` limit.

收藏

介绍

中文介绍正在准备中,下面暂时显示原文。

AE2 KeyCounter Overflow Fix

AE2’s VariantCounter uses a long to store the amount of each AEKey. When the stored amount approaches the maximum value of a long, adding more items can cause an integer overflow, resulting in an incorrect (potentially negative) amount.

This mod fixes this issue by preventing VariantCounter from exceeding the valid range of a Java long.

When an addition would cause an overflow, the amount is automatically clamped to the maximum or minimum representable value instead.

This mod is intended as a lightweight compatibility and bug-fix mod. It does not add any new gameplay features or content.

常见问题

AE2 KeyCounter Overflow Fix 支持哪些 Minecraft 版本?

AE2 KeyCounter Overflow Fix 支持 Minecraft Java 版 1.20.1–1.21.1,共 2 个版本,可用的加载器:Forge / NeoForge。下载时注意选择和你游戏版本一致的文件。

AE2 KeyCounter Overflow Fix 怎么安装?

先用 PCL2 或 HMCL 启动器安装对应版本的 Forge / NeoForge,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。

评论

登录后评论和评分

takenokoshi_023 的其他作品

查看全部 →