
CRZ:CobblemonFieldMoves
Server-side Fabric mod for Minecraft 1.21.1 + Cobblemon. Use your Pokemon's moves in the overworld while riding them.
Список изменений
Fix: Cobblemon DiscParticleEmitterShape crash (bound must be finite and positive)
Root cause: Cobblemon's DiscParticleEmitterShape.getNewParticlePosition() calls Random.nextDouble(radius) where the radius is resolved from a MoLang expression (e.g. q.entity_radius * 0.95). When the entity radius evaluates to
0, negative, or NaN, nextDouble() throws IllegalArgumentException because it requires a finite positive bound. This affects ~10 particle files that use emitter_shape_disc without clamping the radius (psychic_target,
dragonclaw_aura, shrooms, bodyslam_actor_dust, superfang, waterpulse, infestation, etc.).
Fix: A client-side Mixin in the CobblemonFieldMoves mod that redirects the Random.nextDouble(bound) call inside getNewParticlePosition() to return 0.0 when the bound is invalid, instead of crashing.