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);
}
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 {