mirror of
https://github.com/TotalFreedomMC/TF-ProjectKorra.git
synced 2024-12-23 00:15:05 +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
|
@ -27,6 +27,10 @@ public class AirFlight extends FlightAbility {
|
||||||
|
|
||||||
public AirFlight(Player player) {
|
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.maxHitsBeforeRemoval = getConfig().getInt("Abilities.Air.Flight.MaxHits");
|
||||||
this.speed = getConfig().getDouble("Abilities.Air.Flight.Speed");
|
this.speed = getConfig().getDouble("Abilities.Air.Flight.Speed");
|
||||||
this.firstProgressIteration = true;
|
this.firstProgressIteration = true;
|
||||||
|
|
Loading…
Reference in a new issue