[Bug] Player bots cannot be teleported to unloaded chunks in 1.18
manyrandomthings opened this issue ยท 1 comments
Through testing I've found that this can partially be fixed uncommenting the 3 lines in EntityPlayerMPFake that are 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)