Unable to teleport entity that has a passenger

XMLWordPrintable

    • Type: Bug
    • Resolution: Unresolved
    • Priority: Minor
    • None
    • Affects Version/s: None
    • None
    • Environment:

      git-Spigot-53e65c9-1ea1adc (MC: 1.9) (Implementing API version 1.9-R0.1-SNAPSHOT)

      When summoning an entity lets say a armor stand and summoning another entity lets say a villager, and then setting the armor stand's passenger as the villager, the armor stand cannot be teleported until the passenger is removed or dead.

      ArmorStand armorStand = (ArmorStand) player.getWorld().spawnEntity(player.getLocation(), EntityType.ARMOR_STAND);
      		Villager villager = (Villager) player.getWorld().spawnEntity(player.getLocation(), EntityType.VILLAGER);
      		armorStand.setPassenger(villager);
      		// some delay
      		armorStand.teleport(player.getLocation());
      

            Assignee:
            Unassigned
            Reporter:
            Toxidius
            Votes:
            4 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated: