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

Servercrash when setting entities on each other

XMLWordPrintable

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

        1. 1.PNG
          1.PNG
          60 kB
        2. 2.PNG
          2.PNG
          42 kB

            Unassigned Unassigned
            Shynixn Shynixn
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: