Fixed NPE for repulsion ability

This commit is contained in:
Kino 2019-01-31 20:29:20 -05:00
parent 8835b2a624
commit 9780a62d64

View file

@ -50,6 +50,11 @@ public class AbilityRepulsion implements IAetherAbility {
Entity shooter = this.getShooter(projectile);
if (shooter == null)
{
return;
}
x = this.player.getEntity().posX - shooter.posX;
y = this.player.getEntity().boundingBox.minY - shooter.boundingBox.minY;
z = this.player.getEntity().posZ - shooter.posZ;