last_one_core-1.5.5
Curse Maven Snippet
What's new
1.5.5
- Fix a client crash on every resource reload (
Description: Rendering overlay,java.lang.NullPointerException: Cannot invoke "com.mojang.serialization.Codec.parse(...)" because "valueCodec" is null) raised by ParticleStorm 1.5.0 while parsing a particle definition whosecomponentsblock names a component id that no mod registered. ParticleStorm resolves each key throughDFUCompat.dispatchedMap(ResourceLocation.CODEC, IComponent.COMPONENTS::get), and the codec it builds callsparseon the returned value codec without a null check; every other failure path in that lambda is already silent (if (valueResult.result().isPresent())), which is why the missing guard only ever surfaces as a crash. Three Dimension Particle 1.3.0 is the concrete trigger: itsTDPClient#registerCustomComponentimplements theRegisterCustomComponentEventlistener that publishesthr_dim_particle:appearance, butTDPonly callsTDPClient.init()and never attaches that listener to the mod event bus, so the component is absent when ParticleStorm parsesconfluence:lantern_night(and TDP's owntest_particle). last_one_core now covers both halves. AtFMLClientSetupEvent, before ParticleStorm's reload listener runs, it reflectively registers the component Three Dimension Particle forgot - skipped whenIComponent.COMPONENTSalready contains it, so a fixed upstream keeps authority. A mixin on ParticleStorm'sDFUCompat$1then answers any other unregistered id with an always-failing codec, which makes ParticleStorm skip that single component and log its name once instead of dropping the connection. Toggle:particleRenderingCompatibility.particleStormComponentFix(default on), aimed at ParticleStorm 1.5.0 / Three Dimension Particle 1.3.0; disabling it restores ParticleStorm's exact original behaviour. No compile dependency on either mod is involved, and both halves no-op cleanly when those mods are absent.
All Relations
- All Relations
- Embedded Library
- Optional Dependency
- Required Dependency
- Tool
- Incompatible
- Include