mirror of
https://github.com/TotalFreedomMC/TF-ProjectKorra.git
synced 2025-02-11 11:40:40 +00:00
Moved an If check under its element
This commit is contained in:
parent
cf004c5592
commit
55594db605
1 changed files with 4 additions and 4 deletions
|
@ -274,10 +274,6 @@ public class PKListener implements Listener {
|
||||||
|
|
||||||
if (!player.isSneaking() && Methods.canBend(player.getName(), abil)) {
|
if (!player.isSneaking() && Methods.canBend(player.getName(), abil)) {
|
||||||
|
|
||||||
if (abil.equalsIgnoreCase("AirShield")) {
|
|
||||||
new AirShield(player);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (Methods.isAirAbility(abil)) {
|
if (Methods.isAirAbility(abil)) {
|
||||||
if (Methods.isWeapon(player.getItemInHand().getType()) && !plugin.getConfig().getBoolean("Properties.Air.CanBendWithWeapons")) {
|
if (Methods.isWeapon(player.getItemInHand().getType()) && !plugin.getConfig().getBoolean("Properties.Air.CanBendWithWeapons")) {
|
||||||
return;
|
return;
|
||||||
|
@ -297,6 +293,10 @@ public class PKListener implements Listener {
|
||||||
if (abil.equalsIgnoreCase("AirSwipe")) {
|
if (abil.equalsIgnoreCase("AirSwipe")) {
|
||||||
AirSwipe.charge(player);
|
AirSwipe.charge(player);
|
||||||
}
|
}
|
||||||
|
if (abil.equalsIgnoreCase("AirShield")) {
|
||||||
|
new AirShield(player);
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (Methods.isWaterAbility(abil)) {
|
if (Methods.isWaterAbility(abil)) {
|
||||||
|
|
Loading…
Reference in a new issue