mirror of
https://github.com/xfl03/MCCustomSkinLoader.git
synced 2026-11-27 02:43:01 +00:00
Add forceDisableCache
This commit is contained in:
4 files changed
+17
-11
No files matched your search
@@ -60,7 +60,7 @@ public class MojangAPILoader implements ProfileLoader.IProfileLoader {
|
||||
|
||||
HttpResponce responce = HttpRequestUtil.makeHttpRequest(
|
||||
new HttpRequest(apiRoot + "profiles/minecraft")
|
||||
.setCacheTime(-1).setPayload(gson.toJson(Collections.singletonList(username)))
|
||||
.setCacheTime(600).setPayload(gson.toJson(Collections.singletonList(username)))
|
||||
);
|
||||
if (StringUtils.isEmpty(responce.content))
|
||||
return null;
|
||||
|
||||
Reference in new issue
Block a user