From 4df77245b82731948a667a8761d32d993bc667e6 Mon Sep 17 00:00:00 2001 From: Sollace Date: Sat, 21 Jul 2018 23:26:19 +0200 Subject: [PATCH] eeeeh --- .../java/com/voxelmodpack/hdskins/gui/GuiSkins.java | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/hdskins/java/com/voxelmodpack/hdskins/gui/GuiSkins.java b/src/hdskins/java/com/voxelmodpack/hdskins/gui/GuiSkins.java index f0588c22..45bad033 100644 --- a/src/hdskins/java/com/voxelmodpack/hdskins/gui/GuiSkins.java +++ b/src/hdskins/java/com/voxelmodpack/hdskins/gui/GuiSkins.java @@ -544,11 +544,10 @@ public class GuiSkins extends GuiScreen { uploadingSkin = true; skinUploadMessage = I18n.format(uploadMsg); - // TODO: This looks too much like the "fetch(method, url, headers).then(...then(..).then(...)).then(...).catch(...).then(...).then(...)...etc" hell. HDSkinManager.INSTANCE.getGatewayServer() - .uploadSkin(mc.getSession(), path, textureType, getMetadata()) - .thenAccept(this::onUploadComplete) - .exceptionally(this::onUploadFailed); + .uploadSkin(mc.getSession(), path, textureType, getMetadata()) + .thenAccept(this::onUploadComplete) + .exceptionally(this::onUploadFailed); } private void onUploadComplete(SkinUploadResponse response) { @@ -566,7 +565,7 @@ public class GuiSkins extends GuiScreen { setUploadError(t.toString()); uploadingSkin = false; - return null; + return null; // TODO: Why must this return something? >.> } private Map getMetadata() {