mirror of
https://github.com/TotalFreedomMC/TF-ProjectKorra.git
synced 2024-12-23 00:15:05 +00:00
NPE Fix
This commit is contained in:
parent
6e4705d0bc
commit
4ef2e12287
1 changed files with 30 additions and 31 deletions
|
@ -124,6 +124,7 @@ public class Methods {
|
|||
|
||||
public static boolean isBender(String player, Element element) {
|
||||
BendingPlayer bPlayer = getBendingPlayer(player);
|
||||
if (bPlayer == null) return false;
|
||||
if (bPlayer.hasElement(element)) return true;
|
||||
return false;
|
||||
}
|
||||
|
@ -296,8 +297,6 @@ public class Methods {
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
public static void stopBending() {
|
||||
List<AbilityModule> abilities = AbilityModuleManager.ability;
|
||||
for (AbilityModule ab: abilities) {
|
||||
|
|
Loading…
Reference in a new issue