Open Dev296 opened 5 years ago
Does the issue occur without using the BukkitRunnable? (like calling the teleport method directly after spawning, or after a second command is called, etc)
It works directly after spawning, but a BukkitRunnable is how you would add a delay. Just sleeping would hang the main thread.
Title: Entity Teleportation Not Syncing to Client Glowstone Version: 2018.9.0.e83d836
I was trying to develop a plugin that involves moving an entity by teleporting it a lot. I was running my teleportation code in a BukkitRunnable.
To reproduce the problem put the following code as your
onCommand
:Then compile the plugin, start the glowstone server and fly to 0, 256, 0. Then run /test. An armor stand appears at 0,256,0 as intended however, it when it teleports to to 10, 256, 10 it does not move client side. Reloging fixes this issue.
Potentially related to #993.