Skip to content

No support for dynamic worlds #33

@Wroud

Description

@Wroud

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

  1. first add Wrolds
  2. create new world and then create any world using Worlds
  3. teleport to this created world
  4. exit game
  5. add worldthreader
  6. 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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingmodsMod compatibility

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions