mirror of
https://github.com/TotalFreedomMC/TF-ProjectKorra.git
synced 2025-02-11 11:40:40 +00:00
add check for slime existing and still mounted
This commit is contained in:
parent
f6f2b8b954
commit
3094c691a9
1 changed files with 6 additions and 0 deletions
|
@ -134,6 +134,12 @@ public class AirScooter extends AirAbility {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (slime == null || !slime.getPassengers().contains(player)){
|
||||||
|
this.bPlayer.addCooldown(this);
|
||||||
|
this.remove();
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
Vector velocity = this.player.getEyeLocation().getDirection().clone().normalize();
|
Vector velocity = this.player.getEyeLocation().getDirection().clone().normalize();
|
||||||
velocity = velocity.clone().normalize().multiply(this.speed);
|
velocity = velocity.clone().normalize().multiply(this.speed);
|
||||||
/*
|
/*
|
||||||
|
|
Loading…
Reference in a new issue