Currently threads created only once on WorldThreadingManager creation.
However fabric provides ServerWorldEvents.LOAD and ServerWorldEvents.UNLOAD events for level manadgement.
This will make this mod not work for any mods with dynamic level loading/unloading.
I've checked compatibility with my mod https://modrinth.com/mod/mc-worlds and it doesn't work in such setup
- first add
Wrolds
- create new world and then create any world using
Worlds
- teleport to this created world
- exit game
- add
worldthreader
- load wolrd
this will make server crash:
[02:22:57] [Server Watchdog/ERROR] (Minecraft) A single server tick took 60.00 seconds (should be max 0.05)
[02:22:57] [Server Watchdog/ERROR] (Minecraft) Considering it to be crashed, server will forcibly shutdown.
> :[02:22:58] [Server Watchdog/ERROR] (worldthreader) Thread Thread[#90,Server Watchdog,8,main] is requesting exclusive world access. However, only world threads may request exclusive access during the world ticking!
Currently threads created only once on
WorldThreadingManagercreation.However fabric provides
ServerWorldEvents.LOADandServerWorldEvents.UNLOADevents for level manadgement.This will make this mod not work for any mods with dynamic level loading/unloading.
I've checked compatibility with my mod https://modrinth.com/mod/mc-worlds and it doesn't work in such setup
WroldsWorldsworldthreaderthis will make server crash: