mirror of
https://github.com/TotalFreedomMC/TF-ProjectKorra.git
synced 2024-12-22 16:05:01 +00:00
Added null checks to hasPassive(...) (#709)
This commit is contained in:
parent
011a047559
commit
c068463232
1 changed files with 5 additions and 0 deletions
|
@ -67,6 +67,11 @@ public class PassiveManager {
|
|||
}
|
||||
|
||||
public static boolean hasPassive(Player player, CoreAbility passive) {
|
||||
if (player == null) {
|
||||
return false;
|
||||
} else if (passive == null) {
|
||||
return false;
|
||||
}
|
||||
BendingPlayer bPlayer = BendingPlayer.getBendingPlayer(player);
|
||||
Element element = passive.getElement();
|
||||
if (passive.getElement() instanceof SubElement) {
|
||||
|
|
Loading…
Reference in a new issue