fix error with direction vector in airblast

This commit is contained in:
Josh 2019-10-09 12:58:57 -04:00 committed by GitHub
parent a8a8daa6d0
commit dfcab9488d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -92,7 +92,7 @@ public class AirBlast extends AirAbility {
if (entity != null) {
this.direction = GeneralMethods.getDirection(this.origin, entity.getLocation()).normalize();
} else {
this.direction = GeneralMethods.getDirection(this.origin, GeneralMethods.getTargetedLocation(player, this.range)).normalize();
this.direction = player.getEyeLocation().getDirection().normalize();
}
} else {
this.origin = player.getEyeLocation();