Spawn C2ME Fix
No reviews yet
Fixes chunk deadlock and game crash when using Spawn and C2ME together.
Community voices
Reviews
Click once to include, again to exclude, again to clear
No reviews yet. Be the first to review this project!
Get it on
Available Platforms
About
Project Details
For authors
Embed Badge
If you're the author of this project, you can embed a live badge anywhere that supports HTML or Markdown. It updates automatically whenever ratings change.
Use HTML for any page that supports it, or Markdown for README files and Markdown-based descriptions.
Identifiers
Platform IDs
Resources
External Links
About
Description
Description
This mod patches AnimalVariantManager.chooseWeightedVariant() in the Spawn mod to use the entity's own thread-safe RandomSource instead of Level.random.
This prevents a ConcurrentModificationException when C2ME calls finalizeSpawn from a worker thread during chunk generation, which would otherwise deadlock further chunk loading.
Known issues
The original approach was meant to make the animal variants deterministic, meaning you would always encounter the same variant in the same place in the world in the same seed. The fix breaks this behaviour and makes the variants completely random. Generating a world with the same seed will give you a different outcome each time.
There probably is a way to solve this more gracefully, but it would require much deeper integration which for me personally is out of scope.
Screenshots
Gallery
Versions
Files
Relations
Project Relations
More like this
Similar Mods
Suggestions use data such as tags, dependencies, dependents, descriptions, titles, and more to rank how much they overlap with this mod.
On ModDex
Community snapshot
By the numbers
Statistics
Want to reach Minecraft players?
We're looking for a server hosting partner to feature here and other parts of the site. Interested? Send us a message!
Get in touchGet it on
Available Platforms
On ModDex
Community snapshot
By the numbers
Statistics
Resources