mirror of
https://github.com/TotalFreedomMC/TF-ProjectKorra.git
synced 2024-12-22 16:05:01 +00:00
Fixed bending breaking when a user toggles their bending (#710)
This commit is contained in:
parent
3b597cc933
commit
2de9ce3281
1 changed files with 3 additions and 3 deletions
|
@ -213,12 +213,12 @@ public abstract class CoreAbility implements Ability {
|
||||||
BendingPlayer bPlayer = abil.getBendingPlayer();
|
BendingPlayer bPlayer = abil.getBendingPlayer();
|
||||||
if (bPlayer == null || !abil.getPlayer().isOnline()) {
|
if (bPlayer == null || !abil.getPlayer().isOnline()) {
|
||||||
abil.remove();
|
abil.remove();
|
||||||
return;
|
continue;
|
||||||
} else if (!bPlayer.canBendPassive(abil.getElement())) { // Check for if the passive should be removed
|
} else if (!bPlayer.canBendPassive(abil.getElement())) { // Check for if the passive should be removed
|
||||||
abil.remove();
|
abil.remove();
|
||||||
return;
|
continue;
|
||||||
} else if (!bPlayer.canUsePassive(abil.getElement())) { // Check for if the passive should be prevented from happening, but not remove it
|
} else if (!bPlayer.canUsePassive(abil.getElement())) { // Check for if the passive should be prevented from happening, but not remove it
|
||||||
return;
|
continue;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
abil.progress();
|
abil.progress();
|
||||||
|
|
Loading…
Reference in a new issue