promotional bannermobile promotional banner

ThreadWard

A small, surgical fix for a real parallel mod-loading crash

ThreadWard

A small, surgical fix for a real parallel mod-loading crash.

What it does

ThreadWard wraps the backing maps of EntityRenderers and ItemProperties in thread-safe implementations via Mixin. This resolves a race condition that occurs when mods register renderers or item property overrides in parallel during FMLClientSetupEvent — which, in large modpacks (1000+ mods), can throw an intermittent ArrayIndexOutOfBoundsException and crash the game on startup.

If you've ever had your modpack crash on a different mod every time you launch it, with an ArrayIndexOutOfBoundsException somewhere inside EntityRenderers or ItemProperties, this is almost certainly the fix you need.

Why this exists

NeoForge dispatches FMLClientSetupEvent to mods in parallel across multiple threads for faster startup. Most of the time this is safe — but a handful of internal Minecraft/NeoForge collections were never designed to be written to concurrently. With enough mods registering renderers/item properties at the same time, you eventually lose the race and crash. The usual workaround is forcing ForkJoinPool.common.parallelism=1, which works but throws away the performance benefit of parallel loading entirely.

ThreadWard fixes the actual unsafe collections instead, so parallel mod loading stays fast and safe.

Compatibility

  • Minecraft: 1.21.1
  • Mod Loader: NeoForge (built and tested against 21.1.236)
  • Dependencies: None
  • Side: Client
  • Should be compatible with essentially any modpack — this mod does not add content, change gameplay, or touch anything outside the two specific collections it patches.

Installation

Drop the jar in your mods folder. That's it — no configuration, nothing to set up. It works silently in the background.

FAQ

Will this conflict with anything? Very unlikely. ThreadWard only replaces the internal storage of two specific vanilla/NeoForge registries with thread-safe equivalents — it doesn't remove, override, or change any mod's actual content or behavior.

Do I need this if my pack isn't crashing? No harm in having it installed either way, but if you're not seeing intermittent ArrayIndexOutOfBoundsException crashes tied to EntityRenderers or ItemProperties, you probably don't need it.

Can I use this in my modpack? Yes — licensed under MIT, use it freely in any modpack, public or private.

Credits

Built to fix a real crash encountered in a 1300+ mod kitchen-sink modpack. Sometimes the best fixes are the small, targeted ones.

The ThreadWard Team

profile avatar
Owner
  • 5
    Projects
  • 1.2K
    Downloads

More from DdanteeView all

  • Been There project image

    Been There

    Marks explorer/treasure maps as already visited, in your inventory and on villager trade offers, so you never buy a duplicate map by mistake.

    • 141
    • July 19, 2026
  • Tally Hearts project image

    Tally Hearts

    Tally Hearts collapses your hp or armor into a single row using configurable colors — one color per "row" of health or armor — and adds a small numeric counter on top so you never have to memorize what each color means.

    • 63
    • July 11, 2026
  • Zombie Extreme Biome Fix project image

    Zombie Extreme Biome Fix

    A simple fix with config options for Zombie Extreme mod: easily disable radiation damage or block the generation of the Scorched Earth biome

    • 573
    • January 25, 2026
  • Armor Loadout Swapper project image

    Armor Loadout Swapper

    A lightweight utility mod that lets you instantly swap your equipped armor with a secondary set using a satchel.

    • 359
    • January 5, 2026
  • Been There project image

    Been There

    Marks explorer/treasure maps as already visited, in your inventory and on villager trade offers, so you never buy a duplicate map by mistake.

    • 141
    • July 19, 2026
  • Tally Hearts project image

    Tally Hearts

    Tally Hearts collapses your hp or armor into a single row using configurable colors — one color per "row" of health or armor — and adds a small numeric counter on top so you never have to memorize what each color means.

    • 63
    • July 11, 2026
  • Zombie Extreme Biome Fix project image

    Zombie Extreme Biome Fix

    A simple fix with config options for Zombie Extreme mod: easily disable radiation damage or block the generation of the Scorched Earth biome

    • 573
    • January 25, 2026
  • Armor Loadout Swapper project image

    Armor Loadout Swapper

    A lightweight utility mod that lets you instantly swap your equipped armor with a secondary set using a satchel.

    • 359
    • January 5, 2026