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;
|
||||
offline = false;
|
||||
|
||||
remotePlayer.reloadRemoteSkin(this, this::onSetRemoteSkin).exceptionally(throwable -> {
|
||||
throwable = throwable.getCause();
|
||||
|
||||
throwable.printStackTrace();
|
||||
|
||||
remotePlayer.reloadRemoteSkin(this, this::onSetRemoteSkin).handle((a, throwable) -> {
|
||||
fetchingSkin = false;
|
||||
|
||||
if (throwable != null) {
|
||||
throwable = throwable.getCause();
|
||||
|
||||
if (throwable instanceof AuthenticationUnavailableException) {
|
||||
offline = true;
|
||||
} else {
|
||||
throttlingNeck = true;
|
||||
throwable.printStackTrace();
|
||||
|
||||
if (throwable instanceof AuthenticationUnavailableException) {
|
||||
offline = true;
|
||||
} else {
|
||||
throttlingNeck = true;
|
||||
}
|
||||
}
|
||||
return null;
|
||||
return a;
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue