add check for slime existing and still mounted

This commit is contained in:
PhanaticD 2019-01-12 22:10:44 -05:00
parent f6f2b8b954
commit 3094c691a9

View file

@ -134,6 +134,12 @@ public class AirScooter extends AirAbility {
return;
}
if (slime == null || !slime.getPassengers().contains(player)){
this.bPlayer.addCooldown(this);
this.remove();
return;
}
Vector velocity = this.player.getEyeLocation().getDirection().clone().normalize();
velocity = velocity.clone().normalize().multiply(this.speed);
/*