diff --git a/src/hdskins/java/com/voxelmodpack/hdskins/SkinUploader.java b/src/hdskins/java/com/voxelmodpack/hdskins/SkinUploader.java index e66ba9fa..a30e8ba7 100644 --- a/src/hdskins/java/com/voxelmodpack/hdskins/SkinUploader.java +++ b/src/hdskins/java/com/voxelmodpack/hdskins/SkinUploader.java @@ -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; }); }