From dfcab9488dfc518c03564297339123916193f091 Mon Sep 17 00:00:00 2001 From: Josh Date: Wed, 9 Oct 2019 12:58:57 -0400 Subject: [PATCH] fix error with direction vector in airblast --- src/com/projectkorra/projectkorra/airbending/AirBlast.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/com/projectkorra/projectkorra/airbending/AirBlast.java b/src/com/projectkorra/projectkorra/airbending/AirBlast.java index 986d15b9..027200ad 100644 --- a/src/com/projectkorra/projectkorra/airbending/AirBlast.java +++ b/src/com/projectkorra/projectkorra/airbending/AirBlast.java @@ -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();