Description
The server crashes repeatedly due to the Pupfish chunk search running on every tick and taking too long when complex worldgen mods are present.
Crash
The server watchdog kills the server after a single tick exceeds 60 seconds.
Suspected call stack:
AMWorldData.getWaterHeight → AMWorldData.searchForPupfishChunk → AMWorldData.tickPupfish → ServerEvents.onServerTick
The getWaterHeight method triggers a full NoiseBasedChunkGenerator noise calculation on the server thread, which becomes extremely slow with mods like Terralith + Regions Unexplored installed.
Steps to Reproduce
- Install Alex's Mobs 1.22.9 with Terralith 2.5.4 and Regions Unexplored 0.5.6
- Start a dedicated server
- Server crashes within ~60 seconds of startup
Expected Behavior
Setting devilsHolePupfishSpawnWeight = 0 should prevent the search entirely but does not.
Environment
- Alex's Mobs: 1.22.9
- Minecraft: 1.20.1 Forge 47.4.10
- Terralith: 2.5.4
- Regions Unexplored: 0.5.6
Related Issues
#2176
Description
The server crashes repeatedly due to the Pupfish chunk search running on every tick and taking too long when complex worldgen mods are present.
Crash
The server watchdog kills the server after a single tick exceeds 60 seconds.
Suspected call stack:
AMWorldData.getWaterHeight → AMWorldData.searchForPupfishChunk → AMWorldData.tickPupfish → ServerEvents.onServerTick
The
getWaterHeightmethod triggers a fullNoiseBasedChunkGeneratornoise calculation on the server thread, which becomes extremely slow with mods like Terralith + Regions Unexplored installed.Steps to Reproduce
Expected Behavior
Setting
devilsHolePupfishSpawnWeight = 0should prevent the search entirely but does not.Environment
Related Issues
#2176