Fixed fetching skin message never being cleared

This commit is contained in:
Sollace 2018-08-22 15:45:18 +02:00
parent aa1a6e0002
commit 3cc26b7cd1

View file

@ -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) -> {
fetchingSkin = false;
if (throwable != null) {
throwable = throwable.getCause(); throwable = throwable.getCause();
throwable.printStackTrace(); throwable.printStackTrace();
fetchingSkin = false;
if (throwable instanceof AuthenticationUnavailableException) { if (throwable instanceof AuthenticationUnavailableException) {
offline = true; offline = true;
} else { } else {
throttlingNeck = true; throttlingNeck = true;
} }
return null; }
return a;
}); });
} }