mirror of
https://github.com/TotalFreedomMC/TF-ProjectKorra.git
synced 2024-10-31 17:29:25 +00:00
Added null checks to hasPassive(...) (#709)
This commit is contained in:
parent
011a047559
commit
c068463232
|
@ -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