Uploaded image for project: 'Spigot'
  1. Spigot
  2. SPIGOT-2064

Unable to teleport entity that has a passenger

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • None
    • None
    • 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());
      

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

              Created:
              Updated: