Villager and other entity call world mismatch
bug
### Describe the bug
[02:31:33 ERROR]: [Worlds] Failed to find portalToAsync method for Entity class
java.lang.reflect.InvocationTargetException
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:118) ~[?:?]
at java.base/java.lang.reflect.Method.invoke(Method.java:580) ~[?:?]
at worlds-3.12.2-all.jar//net.thenextlvl.worlds.listener.FoliaPortalListener.performPlayerTeleport(FoliaPortalListener.java:146) ~[?:?]
at worlds-3.12.2-all.jar//net.thenextlvl.worlds.listener.FoliaPortalListener.lambda$handlePortal$0(FoliaPortalListener.java:105) ~[?:?]
at io.papermc.paper.threadedregions.scheduler.FoliaEntityScheduler$EntityScheduledTask.accept(FoliaEntityScheduler.java:167) ~[folia-1.21.11.jar:?]
at io.papermc.paper.threadedregions.scheduler.FoliaEntityScheduler$EntityScheduledTask.accept(FoliaEntityScheduler.java:114) ~[folia-1.21.11.jar:?]
at io.papermc.paper.threadedregions.EntityScheduler.executeTick(EntityScheduler.java:243) ~[folia-1.21.11.jar:1.21.11-13-e9e85fd]
at net.minecraft.server.MinecraftServer.tickServer(MinecraftServer.java:1732) ~[folia-1.21.11.jar:1.21.11-13-e9e85fd]
at net.minecraft.server.dedicated.DedicatedServer.tickServer(DedicatedServer.java:429) ~[folia-1.21.11.jar:1.21.11-13-e9e85fd]
at io.papermc.paper.threadedregions.TickRegions$ConcreteRegionTickHandle.tickRegion(TickRegions.java:485) ~[folia-1.21.11.jar:1.21.11-13-e9e85fd]
at io.papermc.paper.threadedregions.TickRegionScheduler$RegionScheduleHandle.runTick(TickRegionScheduler.java:481) ~[folia-1.21.11.jar:1.21.11-13-e9e85fd]
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) ~[?:?]
Caused by: java.lang.IllegalStateException: World mismatch: expected world_of_farms but got world_of_farms_nether
at net.minecraft.world.level.Level.getCurrentWorldData(Level.java:829) ~[folia-1.21.11.jar:1.21.11-13-e9e85fd]
at net.minecraft.world.level.Level.getDayTime(Level.java:1913) ~[folia-1.21.11.jar:1.21.11-13-e9e85fd]
at net.minecraft.world.timeline.AttributeTrackSampler.applyTimeBased(AttributeTrackSampler.java:35) ~[folia-1.21.11.jar:1.21.11-13-e9e85fd]
at net.minecraft.world.attribute.EnvironmentAttributeSystem$ValueSampler.computeValueNotPositional(EnvironmentAttributeSystem.java:257) ~[folia-1.21.11.jar:1.21.11-13-e9e85fd]
at net.minecraft.world.attribute.EnvironmentAttributeSystem$ValueSampler.getDimensionValue(EnvironmentAttributeSystem.java:224) ~[folia-1.21.11.jar:1.21.11-13-e9e85fd]
at net.minecraft.world.attribute.EnvironmentAttributeSystem$ValueSampler.getValue(EnvironmentAttributeSystem.java:231) ~[folia-1.21.11.jar:1.21.11-13-e9e85fd]
at net.minecraft.world.attribute.EnvironmentAttributeSystem.getValue(EnvironmentAttributeSystem.java:117) ~[folia-1.21.11.jar:1.21.11-13-e9e85fd]
at net.minecraft.world.attribute.EnvironmentAttributeReader.getValue(EnvironmentAttributeReader.java:27) ~[folia-1.21.11.jar:1.21.11-13-e9e85fd]
at net.minecraft.world.entity.ai.Brain.updateActivityFromSchedule(Brain.java:313) ~[folia-1.21.11.jar:1.21.11-13-e9e85fd]
at net.minecraft.world.entity.npc.villager.Villager.registerBrainGoals(Villager.java:253) ~[folia-1.21.11.jar:1.21.11-13-e9e85fd]
at net.minecraft.world.entity.npc.villager.Villager.makeBrain(Villager.java:213) ~[folia-1.21.11.jar:1.21.11-13-e9e85fd]
at net.minecraft.world.entity.LivingEntity.<init>(LivingEntity.java:326) ~[folia-1.21.11.jar:1.21.11-13-e9e85fd]
at net.minecraft.world.entity.Mob.<init>(Mob.java:155) ~[folia-1.21.11.jar:1.21.11-13-e9e85fd]
at net.minecraft.world.entity.PathfinderMob.<init>(PathfinderMob.java:17) ~[folia-1.21.11.jar:1.21.11-13-e9e85fd]
at net.minecraft.world.entity.AgeableMob.<init>(AgeableMob.java:29) ~[folia-1.21.11.jar:1.21.11-13-e9e85fd]
at net.minecraft.world.entity.npc.villager.AbstractVillager.<init>(AbstractVillager.java:49) ~[folia-1.21.11.jar:1.21.11-13-e9e85fd]
at net.minecraft.world.entity.npc.villager.Villager.<init>(Villager.java:192) ~[folia-1.21.11.jar:1.21.11-13-e9e85fd]
at net.minecraft.world.entity.npc.villager.Villager.<init>(Villager.java:188) ~[folia-1.21.11.jar:1.21.11-13-e9e85fd]
at net.minecraft.world.entity.npc.villager.Villager.<init>(Villager.java:184) ~[folia-1.21.11.jar:1.21.11-13-e9e85fd]
at net.minecraft.world.entity.EntityType.create(EntityType.java:1523) ~[folia-1.21.11.jar:1.21.11-13-e9e85fd]
at net.minecraft.world.entity.Entity.transformForAsyncTeleport(Entity.java:4345) ~[folia-1.21.11.jar:1.21.11-13-e9e85fd]
at net.minecraft.world.entity.Entity.portalToAsync(Entity.java:4738) ~[folia-1.21.11.jar:1.21.11-13-e9e85fd]
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103) ~[?:?]
... 12 more
### To Reproduce
1. Create custom world and nether.
2. Link custom_world with custom_world_nether.
3. Teleport villager and other heavy mobs and u got Caused by: java.lang.IllegalStateException: World mismatch: expected world_of_farms but got world_of_farms_nether.
### Expected behaviour
Can teleport as vanilla mobs without crash
### Screenshots / Videos
_No response_
### Error log (if applicable)
https://mclo.gs/hRlqdLJ
### Worlds Version
Worlds version 3.12.2
### Server version
[02:36:49 INFO]: Checking version, please wait...
[02:36:49 INFO]: 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)
### Checklist
- [x] I am using the newest build from https://github.com/TheNextLvl-net/worlds and the issue still persists.
### Anything else?
_No response_
1 条评论