mirror of
https://github.com/MineLittlePony/MineLittlePony.git
synced 2024-11-29 23:48:00 +01:00
Fixed fetching skin message never being cleared
This commit is contained in:
parent
aa1a6e0002
commit
3cc26b7cd1
1 changed files with 11 additions and 10 deletions
|
@ -206,20 +206,21 @@ public class SkinUploader implements Closeable {
|
||||||
throttlingNeck = false;
|
throttlingNeck = false;
|
||||||
offline = false;
|
offline = false;
|
||||||
|
|
||||||
remotePlayer.reloadRemoteSkin(this, this::onSetRemoteSkin).exceptionally(throwable -> {
|
remotePlayer.reloadRemoteSkin(this, this::onSetRemoteSkin).handle((a, throwable) -> {
|
||||||
throwable = throwable.getCause();
|
|
||||||
|
|
||||||
throwable.printStackTrace();
|
|
||||||
|
|
||||||
fetchingSkin = false;
|
fetchingSkin = false;
|
||||||
|
|
||||||
|
if (throwable != null) {
|
||||||
|
throwable = throwable.getCause();
|
||||||
|
|
||||||
if (throwable instanceof AuthenticationUnavailableException) {
|
throwable.printStackTrace();
|
||||||
offline = true;
|
|
||||||
} else {
|
if (throwable instanceof AuthenticationUnavailableException) {
|
||||||
throttlingNeck = true;
|
offline = true;
|
||||||
|
} else {
|
||||||
|
throttlingNeck = true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return null;
|
return a;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue