-
-
Notifications
You must be signed in to change notification settings - Fork 568
Description
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
pl
[08:58:01 INFO]: ℹ Server Plugins (2):
[08:58:01 INFO]: Bukkit Plugins:
[08:58:01 INFO]: - ViaBackwards, ViaVersion
Folia version
Folia Version: 1.21.11 (build 1.21.11-10-1aa7055)
Other
No response