mirror of
https://github.com/TotalFreedomMC/TF-ProjectKorra.git
synced 2025-02-11 11:40:40 +00:00
Fix NPE in IceBlast
This commit is contained in:
parent
70fbdb2179
commit
fc1f14a03f
1 changed files with 3 additions and 1 deletions
|
@ -159,7 +159,9 @@ public class IceBlast {
|
|||
progressing = false;
|
||||
}
|
||||
BendingPlayer bPlayer = GeneralMethods.getBendingPlayer(player.getName());
|
||||
bPlayer.addCooldown("IceBlast", cooldown);
|
||||
if (bPlayer != null) {
|
||||
bPlayer.addCooldown("IceBlast", cooldown);
|
||||
}
|
||||
instances.remove(id);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue