mirror of
https://github.com/TotalFreedomMC/TF-ProjectKorra.git
synced 2025-02-11 19:50:37 +00:00
Fix NPE in WaterWave
This commit is contained in:
parent
a91c165ce0
commit
fa92bbe67e
1 changed files with 5 additions and 3 deletions
|
@ -276,9 +276,11 @@ public class WaterWave {
|
|||
|
||||
public void remove() {
|
||||
instances.remove(this);
|
||||
BendingPlayer bPlayer = GeneralMethods.getBendingPlayer(player.getName());
|
||||
if (bPlayer != null) {
|
||||
bPlayer.addCooldown("WaterWave", cooldown);
|
||||
if (player != null && player.isOnline()) {
|
||||
BendingPlayer bPlayer = GeneralMethods.getBendingPlayer(player.getName());
|
||||
if (bPlayer != null) {
|
||||
bPlayer.addCooldown("WaterWave", cooldown);
|
||||
}
|
||||
}
|
||||
revertBlocks();
|
||||
for (BukkitRunnable task : tasks)
|
||||
|
|
Loading…
Reference in a new issue