mirror of
https://github.com/TotalFreedomMC/TF-ProjectKorra.git
synced 2025-02-11 03:30:10 +00:00
Merge pull request #218 from kingbirdy/master
Fix NPE in GeneralMethods
This commit is contained in:
commit
93e18ea975
1 changed files with 1 additions and 1 deletions
|
@ -830,7 +830,7 @@ public class PKListener implements Listener {
|
|||
element = GeneralMethods.getAbilityElement(killerAbility).name();
|
||||
ability = element + "Combo";
|
||||
}
|
||||
} else if (GeneralMethods.abilityExists(ability)) {
|
||||
} else if (ability != null && GeneralMethods.abilityExists(ability)) {
|
||||
element = GeneralMethods.getAbilityElement(ability).name();
|
||||
} else {
|
||||
bendingDeathPlayer.remove(event.getEntity());
|
||||
|
|
Loading…
Reference in a new issue