-
Notifications
You must be signed in to change notification settings - Fork 282
Open
Description
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:
@Override
public boolean onCommand(CommandSender sender, Command cmd, String label, String[] args) {
getLogger().info("onCommand has been invoked!");
if (cmd.getName().equalsIgnoreCase("test")) {
World world = Bukkit.getServer().getWorld("world");
Entity e = world.spawnEntity(new Location(world, 0.0, 256.0, 0.0), ARMOR_STAND);
new BukkitRunnable() {
@Override
public void run() {
e.teleport(new Location(world, 10.0, 256.0, 10.0, e.getLocation().getYaw(), e.getLocation().getPitch()));
}
}.runTaskLater(this, 20);
}
return false;
}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.
Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.