Skip to content

VH Accelerator 1.3.2

Latest

Choose a tag to compare

@HoYin1600p HoYin1600p released this 02 Dec 04:22

VH Accelerator 1.3.2

Version 1.3.2 is a server and singleplayer stability update for Minecraft 1.18.2 Forge that fixes the Vault Hunters challenge controller NullPointerException server crash (ChallengeData.contains on null UUID keys, uninitialized curses lists on save, and null zones on Elite controllers) with zero gameplay changes, and hardens Vault challenge Mixins to fail soft on older or unknown Vault jars.

Download and compatibility

The release artifact is VH-Accelerator-1.3.2.jar for Minecraft 1.18.2 and Forge 40.3.11 or later in the Forge 40.x line, with Java 17-compatible bytecode. Use the same universal jar on clients and dedicated servers. Do not install the -sources.jar as a mod.

Fixed

  • Vault Hunters challenge controller null-UUID & null-field server crashes (compatibility.fixVaultChallengeControllerNpe, default true, live toggle, independent of Compare Mode and the optimization master switch):
    In Vault Hunters, ChallengeControllerBlockEntity.<init> leaves both uuid and curses as null until load(CompoundTag) runs. During Vault generation, BlocksToProtoSectionTask writes a {id: "DUMMY"} pending block-entity tag that Vanilla's LevelChunk.promotePendingBlockEntity promotes via newBlockEntity(pos, state) without calling load() whenever tile NBT is missing/skipped (or when a controller is placed without NBT).

    • On Vault Hunters 3.22.0+ / 3.22.1 / 22.0.0-rem+, ChallengeData.managers is a ConcurrentHashMap, so the first VirtualWorld tick calling ChallengeData.contains(null) immediately throws NullPointerException: Cannot invoke "Object.hashCode()" because "key" is null and crashes the server.
    • Across Vault Hunters 3.21.5, 3.21.6, 3.21.62, 3.22.0, 3.22.1, Remastered 20.0.3, 22.0.0, and Wold's, ChallengeControllerBlockEntity.saveAdditional() also dereferences this.curses.iterator() without a null check, and EliteControllerBlockEntity.createManager() dereferences this.zone.rotate(...) without a null check.
    • On Vault Hunters 3.21.x and 20.0.3-rem, ChallengeData.managers is still a plain unsynchronized HashMap accessed from concurrent VirtualWorld worker threads.

    fixVaultChallengeControllerNpe resolves all four failure modes with zero gameplay changes:

    • Silently initializes missing uuid and curses in ChallengeControllerBlockEntity.<init> (overwritten as usual whenever load(CompoundTag) runs) and self-heals null fields defensively at onTick and saveAdditional (m_183515_).
    • Guards ChallengeData.contains, get(UUID), remove, and add against null UUID keys and null managers.
    • Upgrades plain HashMap instances in ChallengeData to ConcurrentHashMap on older Vault builds (keeping null-key guards active on upgraded maps even if the setting is toggled off live).
    • Guards BlockCuboid.rotate and BlockCuboid.offset in EliteControllerBlockEntity.createManager() when zone == null, matching the other eight challenge controller subclasses.
    • Configurable live via /vha server fixVaultChallengeControllerNpe [on|off|status] (OP level 4) or the OP-4 Server settings screen (Vault Hunters section).

Hardened

  • Fail-soft Vault challenge Mixins: Replaced the hard @Shadow for ChallengeManager.unregisterZone in ChallengeManagerUnloadGuardMixin with a cached reflective lookup, and used a cached reflective lookup for ChallengeControllerBlockEntity.curses in ChallengeControllerNullGuardMixin, so older or custom Vault builds that omit either member step aside cleanly instead of failing at startup.

Upgrade

Stop Minecraft / your server, replace VH-Accelerator-1.3.1.jar with VH-Accelerator-1.3.2.jar (keeping only one VHA jar in mods), and start back up.

Links

  • Compare: https://github.com/HoYin1600p/VH-Accelerator/compare/v1.3.1...v1.3.2
  • Full history: CHANGELOG.md
  • Commands reference: docs/COMMANDS.md