Skip to content

Comments

[1.21.1 Fabric] Fix client world random state corruption when rendering Jade Vine Roots and Shooting Stars.#819

Merged
DaFuqs merged 1 commit intoDaFuqs:1.21.1-aria-for-painters-mojmapfrom
exaskye:fix-random-corruption/1.21.1
Feb 21, 2026
Merged

[1.21.1 Fabric] Fix client world random state corruption when rendering Jade Vine Roots and Shooting Stars.#819
DaFuqs merged 1 commit intoDaFuqs:1.21.1-aria-for-painters-mojmapfrom
exaskye:fix-random-corruption/1.21.1

Conversation

@exaskye
Copy link
Contributor

@exaskye exaskye commented Feb 19, 2026

Kryn commented:

We forgot a patch while upstreaming fixes from our modpack.

Jade Vine Roots and Shooting Stars both pass the shared client world random to the block model renderer, which immediately reinitializes it with the blockstate's "rendering seed". This results in particle effects and other randomized client-side phenomena becoming predictable — usually, torches shoot out continuous jets of smoke with no fire, particle rain starts falling in perfect columns, some particle effects stop spawning at all. It even affects the particle effects of the Jade Vine itself.

As such, it is incorrect to pass a random instance to the block model renderer that is not dedicated to the purpose of rendering block models. Unfortunately, the Random instance used by vanilla for this purpose is held in a private field. It is less work and more maintainable to simply use a per-renderer Random instance rather than using an Accessor.

Changes made by hand in a text editor — we confirmed the mod still compiles and runs.

@DaFuqs DaFuqs merged commit 678eb7e into DaFuqs:1.21.1-aria-for-painters-mojmap Feb 21, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants