Spawn C2ME Fix
Modby Bramblejack
Fixes chunk deadlock and game crash when using Spawn and C2ME together.
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.
Recommended Gear
AffiliateHardware and extras that pair well with this mod.
As an Amazon Associate I earn from qualifying purchases.
Similar Mods
Shine: VFX
Makes Minecraft come alive with tons of visual effects.
Ancient Elements: Better Combat Fix
Fixes the ancient elements mod issue that prevents the sword bonuses from activating when using better combat.
Aardvark's Weird Wonderful Wild
Revitalizes biomes, and adds in 80 new animals!
Harvest Tweaks
Modify the harvestability of all the blocks and tools
No Apotheosis Names
Prevents Apotheosis from adding custom names to entities and items. Still allows Apotheosis to change name colors for th...
Omega Mute
Ω [Client] The only mod you'll need to have full control over individual in-game sound.