promotional bannermobile promotional banner

Effortless Building: AE2 Overflow Fix

Unlisted
Community fork that prevents Effortless Building client crashes from overflowing AE2 item counts.

This is an unofficial community fork of Effortless Building by Requioss for Minecraft 1.21.1 on NeoForge. It includes one targeted client fix for the ItemUsageTracker.computeItem crash tracked in upstream issue #36.

When an AE2 network reports Integer.MAX_VALUE items, adding the player's inventory count with a 32-bit integer wraps negative. The block preview then accesses a negative list index and crashes. Preview calculation can run while the UI is closed and no building mode is actively used. This fork adds the counts using long and caps the result at Integer.MAX_VALUE.

Install: Replace the official Effortless Building 4.2 JAR with this file. Do not keep both JARs in mods, since they share the same mod ID. The server still needs Effortless Building for building features; our clients have worked with an unmodified 4.2 server installation.

The binary is the official 4.2 file with only the NeoForge ItemUsageTracker.class entry changed. Two affected players have reported no further occurrence so far; this is not a claim of complete compatibility testing. Source, exact patcher, license and provenance. Original work by Requioss and contributors. Fork change by florianfinn. Licensed under LGPL-3.0.

Effortless Building: AE2 Overflow Fix Team

profile avatar
  • 4
    Projects
  • 153
    Downloads

More from Florianfinn