mirror of
https://github.com/TotalFreedomMC/TF-ProjectKorra.git
synced 2025-02-11 11:40:40 +00:00
Merge pull request #89 from jacklin213/bugfix
Fix NPE found in FireBurst and Lightning
This commit is contained in:
commit
d5feed9c79
2 changed files with 8 additions and 4 deletions
|
@ -44,7 +44,9 @@ public class FireBurst {
|
|||
}
|
||||
if (AvatarState.isAvatarState(player))
|
||||
chargetime = 0;
|
||||
if (BendingManager.events.get(player.getWorld()).equalsIgnoreCase("SozinsComet")) chargetime = 0;
|
||||
if (BendingManager.events.containsKey(player.getWorld())) {
|
||||
if(BendingManager.events.get(player.getWorld()).equalsIgnoreCase("SozinsComet")) chargetime = 0;
|
||||
}
|
||||
this.player = player;
|
||||
instances.put(player, this);
|
||||
}
|
||||
|
|
|
@ -90,9 +90,11 @@ public class Lightning {
|
|||
stunChance = AvatarState.getValue(stunChance);
|
||||
//stunDuration = AvatarState.getValue(stunDuration);
|
||||
}
|
||||
else if(BendingManager.events.get(player.getWorld()).equalsIgnoreCase("SozinsComet")) {
|
||||
chargeTime = 0;
|
||||
cooldown = 0;
|
||||
else if(BendingManager.events.containsKey(player.getWorld())) {
|
||||
if (BendingManager.events.get(player.getWorld()).equalsIgnoreCase("SozinsComet")) {
|
||||
chargeTime = 0;
|
||||
cooldown = 0;
|
||||
}
|
||||
}
|
||||
instances.add(this);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue