Repository navigation
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, defaulttrue, live toggle, independent of Compare Mode and the optimization master switch):
In Vault Hunters,ChallengeControllerBlockEntity.<init>leaves bothuuidandcursesasnulluntilload(CompoundTag)runs. During Vault generation,BlocksToProtoSectionTaskwrites a{id: "DUMMY"}pending block-entity tag that Vanilla'sLevelChunk.promotePendingBlockEntitypromotes vianewBlockEntity(pos, state)without callingload()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.managersis aConcurrentHashMap, so the firstVirtualWorldtick callingChallengeData.contains(null)immediately throwsNullPointerException: Cannot invoke "Object.hashCode()" because "key" is nulland crashes the server. - Across Vault Hunters
3.21.5,3.21.6,3.21.62,3.22.0,3.22.1, Remastered20.0.3,22.0.0, and Wold's,ChallengeControllerBlockEntity.saveAdditional()also dereferencesthis.curses.iterator()without a null check, andEliteControllerBlockEntity.createManager()dereferencesthis.zone.rotate(...)without a null check. - On Vault Hunters
3.21.xand20.0.3-rem,ChallengeData.managersis still a plain unsynchronizedHashMapaccessed from concurrentVirtualWorldworker threads.
fixVaultChallengeControllerNperesolves all four failure modes with zero gameplay changes:- Silently initializes missing
uuidandcursesinChallengeControllerBlockEntity.<init>(overwritten as usual wheneverload(CompoundTag)runs) and self-heals null fields defensively atonTickandsaveAdditional(m_183515_). - Guards
ChallengeData.contains,get(UUID),remove, andaddagainstnullUUID keys andnullmanagers. - Upgrades plain
HashMapinstances inChallengeDatatoConcurrentHashMapon older Vault builds (keeping null-key guards active on upgraded maps even if the setting is toggled off live). - Guards
BlockCuboid.rotateandBlockCuboid.offsetinEliteControllerBlockEntity.createManager()whenzone == 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 Hunterssection).
- On Vault Hunters
Hardened
- Fail-soft Vault challenge Mixins: Replaced the hard
@ShadowforChallengeManager.unregisterZoneinChallengeManagerUnloadGuardMixinwith a cached reflective lookup, and used a cached reflective lookup forChallengeControllerBlockEntity.cursesinChallengeControllerNullGuardMixin, 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