promotional bannermobile promotional banner
premium banner
Fixes a deadlock issue caused by Terra Entity mod.

Description

The original Terra Entity mod has a bug where it tries to "buff up" monsters the moment they are created. If a monster is created while the world is still generating (like inside a new dungeon), the mod tries to look up data about the surrounding area.

Because the world isn't finished yet, the mod gets stuck in a loop waiting for the area to load, while the game is waiting for the mod to finish. This will cause Deadlock.

 

How does this mod fixes it?

It's very simple, before buffing a mob. It just checks if the chunk is loaded in memory. If not, It doesn't.
And also forces it to run in worker thread instead of main thread. Which should also fix potential deadlock issues.