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

Y-Axis Vector after EntityDamageByEntityEvent not working properly

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: Minor Minor
    • None
    • None
    • Windows 10, Toshiba, Intel Core i3-2328M

    • N/A - Spigot Bug

      @EventHandler
      public void onHitPlayer(EntityDamageByEntityEvent event){
      	player.setVelocity(new Vector(0, 2, 0)); //This one doesn't work
      	player.setVelocity(new Vector(2, 0, 2)); //This one works
      }

      After listening for an EntityDamageByEntityEvent and attempting to change the player's velocity, it will work on the x and z axis, however does not work on the y axis. It seems as though the damage vector is overriding the y axis of the new vector, but not the x and z

            Unassigned Unassigned
            2008Choco Parker Hawke
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: