-
Bug
-
Resolution: Fixed
-
Minor
-
None
-
None
-
- Latest spigot 1.9.0 server build
When you try to set an entity as passenger on a player who is already riding on that entity crashes the server (Stops responding) and shows a huge error stack.
Code to recreate the error:
Player player = Bukkit.getPlayer("<playername>");
Zombie zombie = (Zombie) player.getWorld().spawnEntity(player.getLocation(), EntityType.ZOMBIE);
player.setPassenger(zombie);
zombie.setPassenger(player);