remove todo comment
This commit is contained in:
parent
0002de3d9c
commit
fb95965ae6
1 changed files with 1 additions and 2 deletions
|
@ -68,7 +68,6 @@ public class MojangSkinCache {
|
||||||
}
|
}
|
||||||
|
|
||||||
public CompletableFuture<Skin> fetchByUrl(URL url, String variant) {
|
public CompletableFuture<Skin> fetchByUrl(URL url, String variant) {
|
||||||
|
|
||||||
return CompletableFuture.supplyAsync(() -> {
|
return CompletableFuture.supplyAsync(() -> {
|
||||||
URL apiUrl = parseUrl("https://api.mineskin.org/generate/url");
|
URL apiUrl = parseUrl("https://api.mineskin.org/generate/url");
|
||||||
HttpURLConnection connection = null;
|
HttpURLConnection connection = null;
|
||||||
|
@ -80,7 +79,7 @@ public class MojangSkinCache {
|
||||||
connection.setDoOutput(true);
|
connection.setDoOutput(true);
|
||||||
OutputStream outStream = connection.getOutputStream();
|
OutputStream outStream = connection.getOutputStream();
|
||||||
DataOutputStream out = new DataOutputStream(outStream);
|
DataOutputStream out = new DataOutputStream(outStream);
|
||||||
out.writeBytes("{\"variant\":\"" + variant + "\",\"url\":\"" + url.toString() + "\"}"); // TODO: configurable variant (slim, classic) default: classic
|
out.writeBytes("{\"variant\":\"" + variant + "\",\"url\":\"" + url.toString() + "\"}");
|
||||||
out.flush();
|
out.flush();
|
||||||
out.close();
|
out.close();
|
||||||
outStream.close();
|
outStream.close();
|
||||||
|
|
Loading…
Reference in a new issue