mirror of
https://github.com/MineLittlePony/MineLittlePony.git
synced 2024-12-02 00:37:59 +01:00
Broken back
This commit is contained in:
parent
993eb7ac37
commit
7218d7fbdd
1 changed files with 3 additions and 7 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue