From 7218d7fbdd60399bd16f3ac4ac5410fb2999708a Mon Sep 17 00:00:00 2001 From: Sollace Date: Mon, 30 Jul 2018 11:33:47 +0200 Subject: [PATCH] Broken back --- .../voxelmodpack/hdskins/skins/ValhallaSkinServer.java | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/src/hdskins/java/com/voxelmodpack/hdskins/skins/ValhallaSkinServer.java b/src/hdskins/java/com/voxelmodpack/hdskins/skins/ValhallaSkinServer.java index 7bd21324..85f17c47 100644 --- a/src/hdskins/java/com/voxelmodpack/hdskins/skins/ValhallaSkinServer.java +++ b/src/hdskins/java/com/voxelmodpack/hdskins/skins/ValhallaSkinServer.java @@ -86,15 +86,11 @@ public class ValhallaSkinServer extends AbstractSkinServer { return resetSkin(client, profile, type); } switch (image.getScheme()) { - case "file": - return uploadFile(client, new File(image), profile, type, metadata); + case "file": return uploadFile(client, new File(image), profile, type, metadata); case "http": - case "https": - return uploadUrl(client, image, profile, type, metadata); - default: - throw new IOException("Unsupported URI scheme: " + image.getScheme()); + case "https": return uploadUrl(client, image, profile, type, metadata); + default: throw new IOException("Unsupported URI scheme: " + image.getScheme()); } - } private SkinUploadResponse resetSkin(CloseableHttpClient client, GameProfile profile, MinecraftProfileTexture.Type type) throws IOException {