Broken back

This commit is contained in:
Sollace 2018-07-30 11:33:47 +02:00
parent 993eb7ac37
commit 7218d7fbdd

View file

@ -86,15 +86,11 @@ public class ValhallaSkinServer extends AbstractSkinServer {
return resetSkin(client, profile, type); return resetSkin(client, profile, type);
} }
switch (image.getScheme()) { switch (image.getScheme()) {
case "file": case "file": return uploadFile(client, new File(image), profile, type, metadata);
return uploadFile(client, new File(image), profile, type, metadata);
case "http": case "http":
case "https": case "https": return uploadUrl(client, image, profile, type, metadata);
return uploadUrl(client, image, profile, type, metadata); default: throw new IOException("Unsupported URI scheme: " + image.getScheme());
default:
throw new IOException("Unsupported URI scheme: " + image.getScheme());
} }
} }
private SkinUploadResponse resetSkin(CloseableHttpClient client, GameProfile profile, MinecraftProfileTexture.Type type) throws IOException { private SkinUploadResponse resetSkin(CloseableHttpClient client, GameProfile profile, MinecraftProfileTexture.Type type) throws IOException {