mirror of
https://github.com/TotalFreedomMC/TF-ProjectKorra.git
synced 2025-02-12 03:59:06 +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() {
|
public void remove() {
|
||||||
instances.remove(this);
|
instances.remove(this);
|
||||||
BendingPlayer bPlayer = GeneralMethods.getBendingPlayer(player.getName());
|
if (player != null && player.isOnline()) {
|
||||||
if (bPlayer != null) {
|
BendingPlayer bPlayer = GeneralMethods.getBendingPlayer(player.getName());
|
||||||
bPlayer.addCooldown("WaterWave", cooldown);
|
if (bPlayer != null) {
|
||||||
|
bPlayer.addCooldown("WaterWave", cooldown);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
revertBlocks();
|
revertBlocks();
|
||||||
for (BukkitRunnable task : tasks)
|
for (BukkitRunnable task : tasks)
|
||||||
|
|
Loading…
Reference in a new issue