mirror of
https://github.com/TotalFreedomMC/TF-ProjectKorra.git
synced 2025-02-14 04:47:51 +00:00
Merge pull request #197 from Simplicitee/patch-1
Fix NPE in AvatarState
This commit is contained in:
commit
7d6e23e14a
1 changed files with 1 additions and 0 deletions
|
@ -76,6 +76,7 @@ public class AvatarState {
|
||||||
private boolean progress() {
|
private boolean progress() {
|
||||||
if (player.isDead() || !player.isOnline()) {
|
if (player.isDead() || !player.isOnline()) {
|
||||||
instances.remove(player);
|
instances.remove(player);
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
if (!GeneralMethods.canBend(player.getName(), StockAbility.AvatarState.name())) {
|
if (!GeneralMethods.canBend(player.getName(), StockAbility.AvatarState.name())) {
|
||||||
instances.remove(player);
|
instances.remove(player);
|
||||||
|
|
Loading…
Reference in a new issue