Skip to content

AMWorldData.searchForPupfishChun #2325

@michaelnkr808

Description

@michaelnkr808

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

  1. Install Alex's Mobs 1.22.9 with Terralith 2.5.4 and Regions Unexplored 0.5.6
  2. Start a dedicated server
  3. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions