Alex's Caves (CE) Tremorzilla Crash Fix 1.0.0
Curse Maven Snippet
What's new
Alex's Caves (CE) Tremorzilla Crash Fix — 1.0.0
Client-side fix for the alexscaves:tremorzilla_blast particle crash. No server install, no gameplay change.
The crash
Exception while adding particle
java.lang.NullPointerException: Cannot invoke "java.util.List.size()" because "this.sprites" is null
at net.minecraft.client.particle.ParticleEngine$MutableSpriteSet.get
via TextureSheetParticle.pickSprite
from RaygunBlastParticle$TremorzillaFactory.createParticle
One player can get permanently locked out of a world by this: every join crashes, and the only workaround is for staff to move the character elsewhere.
Why it happens
Alex's Caves (Unofficial Port) registers tremorzilla_blast as a particle and registers a client provider for it, but ships no particle definition file for it. Minecraft only binds a particle's sprites when that file exists, so this particle's sprite set stays empty and the first code to ask it for a sprite throws.
The mod's own factory code is correct — it is byte-identical (889150a6…) in every 2.0.x build and is the victim, not the cause. Nothing in Alex's Caves itself spawns this particle either; a real Tremorzilla fires _PROTON, _LIGHTNING, _EXPLOSION, _STEAM and RAYGUN_BLAST, all of which work. The crash needs a foreign spawner, such as a randomly generated dimension whose ambient particle rolled this one — which is why it is rare, seed-specific, and reproducible only for some players.
The fix
1. The missing asset (root cause). Adds assets/alexscaves/particles/tremorzilla_blast.json, binding the particle to the existing raygun_blast texture its sibling already uses. Smallest possible change and visually correct: tremorzilla_blast is the Tremorzilla's scaled-up version of that same sprite. The sprite set is populated before anything can spawn the particle, so the crash is fixed at its source for every spawner.
2. A factory guard (backstop). RaygunBlastParticle$TremorzillaFactory.createParticle returns "nothing to draw" instead of throwing if its sprites are ever missing again — for example if a resource pack overrides the definition. One missing particle instead of a crash. Gated to Alex's Caves 2.0.x; never runs server-side.
Compatibility
- Registers nothing, opens no network channel, sends nothing. A server without it accepts a patched client with no complaint, and patched and unpatched players see identical gameplay.
- Inert if Alex's Caves is absent, and a no-op if a future build ships its own definition.
- Verified on Alex's Caves (Unofficial Port) 2.0.4 and 2.0.10.
Credits
Alex's Caves by AlexModGuy; the 1.21.1 NeoForge port by Raguto. This patch ships no Alex's Caves code or assets — it adds a resource file for a particle the mod defines but never described, and references a texture loaded from your own installed Alex's Caves jar at runtime. Unofficial community patch; not affiliated with or supported by the upstream authors.
Requirements
Minecraft 1.21.1 · NeoForge 21.1.x · Alex's Caves (Unofficial Port) 2.0.x · Citadel · client-side only
Licence: LGPL-3.0-or-later · Source: https://github.com/Vonix-Network/acparticlefix
All Relations
- All Relations
- Embedded Library
- Optional Dependency
- Required Dependency
- Tool
- Incompatible
- Include
This mod has no related projects