Server setupFolia Server Error: IllegalStateException: World mismatch
What the log looks like
java\.lang\.IllegalStateException: World mismatch: expected \S+ but got \S+
How to fix it
- Update your Folia server JAR to the latest available build, as PaperMC patched the `/time set` synchronization bug in newer 1.21.4+ builds and replaced the villager daytime check in 26.1+.
- If a player is stuck or cannot log back into the server after entering a Nether portal in a boat with a villager, restart the Folia server to clear the broken async teleport state.
- On Folia 1.21.11 builds where the villager portal bug is still present, avoid sending villagers through Nether portals or switch the server JAR to standard Paper if cross-dimension villager transport is required.
| Loaders | Server |
|---|
| Severity | Breaks something |
|---|
| Category | Server setup |
|---|
Check your own log