mirror of
https://github.com/TotalFreedomMC/TF-ProjectKorra.git
synced 2024-12-22 16:05:01 +00:00
fix error with direction vector in airblast
This commit is contained in:
parent
a8a8daa6d0
commit
dfcab9488d
1 changed files with 1 additions and 1 deletions
|
@ -92,7 +92,7 @@ public class AirBlast extends AirAbility {
|
||||||
if (entity != null) {
|
if (entity != null) {
|
||||||
this.direction = GeneralMethods.getDirection(this.origin, entity.getLocation()).normalize();
|
this.direction = GeneralMethods.getDirection(this.origin, entity.getLocation()).normalize();
|
||||||
} else {
|
} else {
|
||||||
this.direction = GeneralMethods.getDirection(this.origin, GeneralMethods.getTargetedLocation(player, this.range)).normalize();
|
this.direction = player.getEyeLocation().getDirection().normalize();
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
this.origin = player.getEyeLocation();
|
this.origin = player.getEyeLocation();
|
||||||
|
|
Loading…
Reference in a new issue