mirror of
https://github.com/TotalFreedomMC/TF-ProjectKorra.git
synced 2024-12-22 16:05:01 +00:00
Re-PR for Flight fix (#553)
Added check to prevent multiple instances of Flight being created.
This commit is contained in:
parent
2c7faf8016
commit
cec9df3ca7
1 changed files with 5 additions and 1 deletions
|
@ -26,7 +26,11 @@ public class AirFlight extends FlightAbility {
|
|||
private double hoverY;
|
||||
|
||||
public AirFlight(Player player) {
|
||||
super(player);
|
||||
super(player);
|
||||
|
||||
if (CoreAbility.getAbility(player, AirFlight.class) != null)
|
||||
return;
|
||||
|
||||
this.maxHitsBeforeRemoval = getConfig().getInt("Abilities.Air.Flight.MaxHits");
|
||||
this.speed = getConfig().getDouble("Abilities.Air.Flight.Speed");
|
||||
this.firstProgressIteration = true;
|
||||
|
|
Loading…
Reference in a new issue