跳到正文

SAFELY Enhanced Armaments – Reloaded

Updated version of Enhanced Armaments Reloaded which implements all the fixes necessary to run the mod within modpacks of any size. (permitted via the authors listed license)

收藏

介绍

中文介绍正在准备中,下面暂时显示原文。
  • The main version of EAR hasn’t been updated in years. So I’ve made this version which actually works in modpacks. It’s pretty much the exact same code as the original, except for an additional 60+ crash and error handlers added throughout.

Summary

  • This is a standalone edition of Enhanced Armaments Reload
  • Install is simple, just replace your old Enhanced Armaments Reload version with this one!
  • Runs seamlessly with over 400 other mods included in my main modpack Hekkit
  • The fixes implemented improve runtime safety and multiplayer robustness by adding defensive checks and switching global state to per-player tracking.

Problems in the original mod:

  • If any other mod touches the same things that EAR does, NullPointerExceptions and index/collection out-of-bounds errors will crash. Usually involves reading item rarity and building tooltips.
  • In multiplayer environments, bowhand tracking and periodic armor healing were crash/error prone and applied their effects to all players, rather than only the player with the attribute.
  • Negative durability values and health overflows would occur anytime abilities modified damage/health.
  • Rarity data loading wouldn’t create its directory reliably and the formatting was a bit inconsistent.

Key changes added in my mod:

  • Guards against null values early to avoid NPEs when rendering UI or processing events.
  • Adds bounds and emptiness checks before accessing tooltip list indexes, attribute modifier collections, and armor/main-hand item stacks.
  • Replaces shared static bow-hand variable with a per-player weak map to correctly track which hand fired a projectile in multiplayer contexts.
  • Replaces the single global healing counter with a per-player timer map so each player heals independently and safely.
  • Clamps durability and health updates so values remain within valid ranges.
  • Ensures rarity file’s directory is created if missing and tidy minor formatting/cleanup.

Results of the changes:

  • Reduced 100% of crashes and unexpected behavior caused by missing or malformed item metadata.
  • Fixed multiplayer desync and incorrect behavior caused by shared mutable states.
  • Improved the stability of tooltip rendering and combat/healing logic.
  • Made file loading more robust across environments.

常见问题

SAFELY Enhanced Armaments – Reloaded 支持哪些 Minecraft 版本?

SAFELY Enhanced Armaments – Reloaded 支持 Minecraft Java 版 1.19.2,可用的加载器:Forge。下载时注意选择和你游戏版本一致的文件。

SAFELY Enhanced Armaments – Reloaded 怎么安装?

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

评论

登录后评论和评分

americansolder 的其他作品

查看全部 →