CobbleSword / NachoSpigot

NachoSpigot is a fork of TacoSpigot 1.8.9 that offers several enhancements to performance as well as bug fixes.
GNU General Public License v3.0
238 stars 90 forks source link

Player teleport does not load chunks #390

Open ytnoos opened 2 years ago

ytnoos commented 2 years ago

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