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

getVelocity() returns zero vector on fireball projectile

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Invalid
    • Icon: Minor Minor
    • None
    • None
    • Windows 7
      Java 9

      **

      SmallFireball fireball = player.launchProjectile(SmallFireball.class);
      Bukkit.broadcastMessage(fireball.getVelocity().toString());
      

      Output: 0.0, 0.0, 0.0

      Even though the fireball is clearly moving at a constant speed. When replaced with Snowball.class, this method returns a correct velocity vector.

            Unassigned Unassigned
            liec0dez liec0dez
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: