Teleporting a player using Player#teleport in an unloaded chunk will get the player stuck in the same position for a while.
Expected Behavior
The teleport should load the chunk immediately before teleporting the player.
Steps To Reproduce
Set 'view-distance: 1' in your spigot.yml. Create a plugin that calls Player#telport into an unloaded chunk but in the same player's world.
Video showing the bug
This server is running NachoSpigot version git-NachoSpigot-"0a3a65e" (MC: 1.8.8) (Implementing API version 1.8.8-R0.2-SNAPSHOT)
You are running the latest version
Other
I've tested using SportPaper and Paper and the issue didn't happen. By looking deeply into the code I found out that Nacho never implemented this patch. I tried to apply that patch to Nacho but the issue still persists.
Having view-distance > 1 will load chunks correctly on teleport.
Agreements
[X] You were able to find this issue on the latest version of NachoSpigot.
[X] You have confirmed that there aren’t any issues open regarding this bug.
Observed Behavior
Teleporting a player using Player#teleport in an unloaded chunk will get the player stuck in the same position for a while.
Expected Behavior
The teleport should load the chunk immediately before teleporting the player.
Steps To Reproduce
Set 'view-distance: 1' in your spigot.yml. Create a plugin that calls Player#telport into an unloaded chunk but in the same player's world. Video showing the bug
Plugin List
SlimeWorldManager, spark, ViaVersion, ProtocolLib, ViaRewind, LuckPerms, HolographicDisplays, BedwarsReforged
Server Version
This server is running NachoSpigot version git-NachoSpigot-"0a3a65e" (MC: 1.8.8) (Implementing API version 1.8.8-R0.2-SNAPSHOT) You are running the latest version
Other
I've tested using SportPaper and Paper and the issue didn't happen. By looking deeply into the code I found out that Nacho never implemented this patch. I tried to apply that patch to Nacho but the issue still persists. Having view-distance > 1 will load chunks correctly on teleport.
Agreements