Carpet

Carpet

2M Downloads

[Bug] Player bots cannot be teleported to unloaded chunks in 1.18

manyrandomthings opened this issue ยท 1 comments

commented

Showcase: https://media.discordapp.net/attachments/894946828980723762/913542111150866442/2021-11-25_16-23-34-converted2.mp4

Through testing I've found that this can partially be fixed uncommenting the 3 lines in EntityPlayerMPFake that are this:

//this.world.getChunkManager().updatePosition(this);

and updating them to this.getWorld().getChunkManager().updatePosition(this), however this doesn't fully fix it. If a bot is teleported to unloaded chunks (through /tp, /spreadplayers, etc), then it doesn't load those chunks until a real player loads them.

Steps to reproduce (tp-specific issue):

  • /player Steve spawn
  • /tp Steve 69420 100 1337
  • /script run loaded(pos(player('Steve'))) (= false)
commented

Indeed something fishy. You can spawn in fake player in unloaded area, and it loads just fine, but when TPing into unloaded chunks it only gets effect when a real player gets close to the area. Something fishy is going in 1.18