mirror of
https://github.com/TotalFreedomMC/TF-ProjectKorra.git
synced 2024-09-11 12:49:32 +00:00
Merge pull request #218 from kingbirdy/master
Fix NPE in GeneralMethods
This commit is contained in:
commit
93e18ea975
|
@ -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