ITADN

Villager tries to teleport through nether portal bug

#436OpenAustraliec 创建于 2026-01-20
type: bugstatus: needs triage
A
Australieccommented
### Expected behavior When a villager passes through the nether portal, he moves between worlds. ### Observed/Actual behavior If the villager tries to move through the nether portal, it will disappear and an error will appear. If the villager was in the boat with the player, then the player gets stuck and will no longer be able to log on to the server until the restart. ``` [12:40:53 ERROR]: Entity threw exception at world:-116.39333593048231,63.0,256.7907611771183 java.lang.IllegalStateException: World mismatch: expected world_nether but got world at net.minecraft.world.level.Level.getCurrentWorldData(Level.java:830) ~[folia-1.21.11.jar:1.21.11-10-1aa7055] at net.minecraft.world.level.Level.getDayTime(Level.java:1914) ~[folia-1.21.11.jar:1.21.11-10-1aa7055] at net.minecraft.world.timeline.AttributeTrackSampler.applyTimeBased(AttributeTrackSampler.java:35) ~[folia-1.21.11.jar:1.21.11-10-1aa7055] at net.minecraft.world.attribute.EnvironmentAttributeSystem$ValueSampler.computeValueNotPositional(EnvironmentAttributeSystem.java:257) ~[folia-1.21.11.jar:1.21.11-10-1aa7055] at net.minecraft.world.attribute.EnvironmentAttributeSystem$ValueSampler.getDimensionValue(EnvironmentAttributeSystem.java:224) ~[folia-1.21.11.jar:1.21.11-10-1aa7055] at net.minecraft.world.attribute.EnvironmentAttributeSystem$ValueSampler.getValue(EnvironmentAttributeSystem.java:231) ~[folia-1.21.11.jar:1.21.11-10-1aa7055] at net.minecraft.world.attribute.EnvironmentAttributeSystem.getValue(EnvironmentAttributeSystem.java:117) ~[folia-1.21.11.jar:1.21.11-10-1aa7055] at net.minecraft.world.attribute.EnvironmentAttributeReader.getValue(EnvironmentAttributeReader.java:27) ~[folia-1.21.11.jar:1.21.11-10-1aa7055] at net.minecraft.world.entity.ai.Brain.updateActivityFromSchedule(Brain.java:313) ~[folia-1.21.11.jar:1.21.11-10-1aa7055] at net.minecraft.world.entity.npc.villager.Villager.registerBrainGoals(Villager.java:253) ~[folia-1.21.11.jar:1.21.11-10-1aa7055] at net.minecraft.world.entity.npc.villager.Villager.makeBrain(Villager.java:213) ~[folia-1.21.11.jar:1.21.11-10-1aa7055] at net.minecraft.world.entity.LivingEntity.<init>(LivingEntity.java:326) ~[folia-1.21.11.jar:1.21.11-10-1aa7055] at net.minecraft.world.entity.Mob.<init>(Mob.java:155) ~[folia-1.21.11.jar:1.21.11-10-1aa7055] at net.minecraft.world.entity.PathfinderMob.<init>(PathfinderMob.java:17) ~[folia-1.21.11.jar:1.21.11-10-1aa7055] at net.minecraft.world.entity.AgeableMob.<init>(AgeableMob.java:29) ~[folia-1.21.11.jar:1.21.11-10-1aa7055] at net.minecraft.world.entity.npc.villager.AbstractVillager.<init>(AbstractVillager.java:49) ~[folia-1.21.11.jar:1.21.11-10-1aa7055] at net.minecraft.world.entity.npc.villager.Villager.<init>(Villager.java:192) ~[folia-1.21.11.jar:1.21.11-10-1aa7055] at net.minecraft.world.entity.npc.villager.Villager.<init>(Villager.java:188) ~[folia-1.21.11.jar:1.21.11-10-1aa7055] at net.minecraft.world.entity.npc.villager.Villager.<init>(Villager.java:184) ~[folia-1.21.11.jar:1.21.11-10-1aa7055] at net.minecraft.world.entity.EntityType.create(EntityType.java:1523) ~[folia-1.21.11.jar:1.21.11-10-1aa7055] at net.minecraft.world.entity.Entity.transformForAsyncTeleport(Entity.java:4346) ~[folia-1.21.11.jar:1.21.11-10-1aa7055] at net.minecraft.world.entity.Entity.portalToAsync(Entity.java:4739) ~[folia-1.21.11.jar:1.21.11-10-1aa7055] at net.minecraft.world.entity.Entity.netherPortalLogicAsync(Entity.java:4491) ~[folia-1.21.11.jar:1.21.11-10-1aa7055] at net.minecraft.world.level.block.NetherPortalBlock.portalAsync(NetherPortalBlock.java:186) ~[folia-1.21.11.jar:1.21.11-10-1aa7055] at net.minecraft.world.entity.PortalProcessor.portalAsync(PortalProcessor.java:37) ~[folia-1.21.11.jar:1.21.11-10-1aa7055] at net.minecraft.world.entity.Entity.handlePortal(Entity.java:3524) ~[folia-1.21.11.jar:1.21.11-10-1aa7055] at net.minecraft.server.level.ServerLevel.tickNonPassenger(ServerLevel.java:1434) ~[folia-1.21.11.jar:1.21.11-10-1aa7055] at net.minecraft.world.level.Level.guardEntityTick(Level.java:1480) ~[folia-1.21.11.jar:1.21.11-10-1aa7055] at net.minecraft.server.level.ServerLevel.lambda$tick$4(ServerLevel.java:870) ~[folia-1.21.11.jar:1.21.11-10-1aa7055] at io.papermc.paper.threadedregions.RegionizedWorldData.forEachTickingEntity(RegionizedWorldData.java:605) ~[folia-1.21.11.jar:1.21.11-10-1aa7055] at net.minecraft.server.level.ServerLevel.tick(ServerLevel.java:851) ~[folia-1.21.11.jar:1.21.11-10-1aa7055] at net.minecraft.server.MinecraftServer.tickChildren(MinecraftServer.java:1927) ~[folia-1.21.11.jar:1.21.11-10-1aa7055] at net.minecraft.server.MinecraftServer.tickServer(MinecraftServer.java:1742) ~[folia-1.21.11.jar:1.21.11-10-1aa7055] at net.minecraft.server.dedicated.DedicatedServer.tickServer(DedicatedServer.java:429) ~[folia-1.21.11.jar:1.21.11-10-1aa7055] at io.papermc.paper.threadedregions.TickRegions$ConcreteRegionTickHandle.tickRegion(TickRegions.java:485) ~[folia-1.21.11.jar:1.21.11-10-1aa7055] at io.papermc.paper.threadedregions.TickRegionScheduler$RegionScheduleHandle.runTick(TickRegionScheduler.java:480) ~[folia-1.21.11.jar:1.21.11-10-1aa7055] at ca.spottedleaf.concurrentutil.scheduler.EDFSchedulerThreadPool$TickThreadRunner.run(EDFSchedulerThreadPool.java:526) ~[concurrentutil-0.0.8.jar:?] at java.base/java.lang.Thread.run(Thread.java:1583) ~[?:?] ``` ### Steps/models to reproduce Try to teleport the villager through the nether portal. You can also get on a boat with a villager and try to teleport through nether portal. ### Plugin and Datapack List I started an empty server without plugins or datapacks. ### Folia version latest Folia 1.21.11 build > version [12:44:31 INFO]: Checking version, please wait... [12:44:32 INFO]: This server is running Folia version 1.21.11-10-ver/1.21.11@1aa7055 (2026-01-04T19:46:20Z) (Implementing API version 1.21.11-R0.1-SNAPSHOT) You are -4 version(s) behind Download the new version at: https://papermc.io/downloads/paper ### Other _No response_
1 条评论