Villager throws IllegalStateException: World mismatch when entering Nether Portal on Folia #431
Labels
No labels
documentation
good first issue
help wanted
resolution: duplicate
resolution: invalid
resolution: won't fix
status: needs triage
type: bug
type: feature
type: performance
type: question
version: 1.19.4
version: 1.20
version: 1.20.1
version: 1.20.2
version: 1.20.4
version: 1.20.6
version: 1.21.11
version: 1.21.4
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Minecraft/Folia#431
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Expected behavior
The Villager should safely teleport to the Nether, similar to other entities or players.
Observed/Actual behavior
The server throws an exception and the Villager fails to teleport:
Error Log
java.lang.IllegalStateException: World mismatch: expected world_nether but got world
at net.minecraft.world.level.Level.getCurrentWorldData(Level.java:830)
at net.minecraft.world.level.Level.getDayTime(Level.java:1914)
at net.minecraft.world.timeline.AttributeTrackSampler.applyTimeBased(AttributeTrackSampler.java:35)
at net.minecraft.world.attribute.EnvironmentAttributeSystem$ValueSampler.computeValueNotPositional(EnvironmentAttributeSystem.java:257)
at net.minecraft.world.attribute.EnvironmentAttributeSystem$ValueSampler.getDimensionValue(EnvironmentAttributeSystem.java:224)
at net.minecraft.world.attribute.EnvironmentAttributeSystem$ValueSampler.getValue(EnvironmentAttributeSystem.java:231)
at net.minecraft.world.attribute.EnvironmentAttributeSystem.getValue(EnvironmentAttributeSystem.java:117)
at net.minecraft.world.attribute.EnvironmentAttributeReader.getValue(EnvironmentAttributeReader.java:27)
at net.minecraft.world.entity.ai.Brain.updateActivityFromSchedule(Brain.java:313)
at net.minecraft.world.entity.npc.villager.Villager.registerBrainGoals(Villager.java:253)
at net.minecraft.world.entity.npc.villager.Villager.makeBrain(Villager.java:213)
at net.minecraft.world.entity.LivingEntity.(LivingEntity.java:326)
at net.minecraft.world.entity.Mob.(Mob.java:155)
at net.minecraft.world.entity.PathfinderMob.(PathfinderMob.java:17)
at net.minecraft.world.entity.AgeableMob.(AgeableMob.java:29)
at net.minecraft.world.entity.npc.villager.AbstractVillager.(AbstractVillager.java:49)
at net.minecraft.world.entity.npc.villager.Villager.(Villager.java:192)
at net.minecraft.world.entity.EntityType.create(EntityType.java:1523)
at net.minecraft.world.entity.Entity.transformForAsyncTeleport(Entity.java:4346)
at net.minecraft.world.entity.Entity.portalToAsync(Entity.java:4739)
at net.minecraft.world.entity.Entity.netherPortalLogicAsync(Entity.java:4491)
at net.minecraft.world.level.block.NetherPortalBlock.portalAsync(NetherPortalBlock.java:186)
at net.minecraft.world.entity.PortalProcessor.portalAsync(PortalProcessor.java:37)
at net.minecraft.world.entity.Entity.handlePortal(Entity.java:3524)
...
Steps/models to reproduce
Run a Folia server.
Create an Overworld (world) and Nether (world_nether).
Spawn a Villager in the Overworld.
Push the Villager into a Nether Portal.
Observe the server console.
Plugin and Datapack List
Folia version
Folia Version: 1.21.11 (build 1.21.11-10-1aa7055)
Other
No response
I got this bug too:
This server is running Folia version 1.21.11-13-ver/1.21.11@e9e85fd (2026-02-15T20:15:31Z) (Implementing API version 1.21.11-R0.1-SNAPSHOT)
You are running the latest version
Previous version: 1.21.11-12-6d795a8 (MC: 1.21.11)
https://mclo.gs/LDOidtK