mirror of
https://github.com/xfl03/MCCustomSkinLoader.git
synced 2026-11-18 09:09:05 +00:00
Fix: MinecraftCapesAPI load profile only with existing UUID
This commit is contained in:
1 parent
e1cde0afc7
commit
a3fa4e47c6
2 files changed
+47
-27
No files matched your search
@@ -49,8 +49,13 @@ public class MinecraftCapesAPI implements JsonAPILoader.IJsonAPI {
|
||||
|
||||
@Override
|
||||
public String toJsonUrl(String root, String username) {
|
||||
String uuid = MojangAPILoader.getMojangUuidByUsername(username);
|
||||
//If uuid cannot be found, we won't load profile in this API.
|
||||
if (uuid == null) {
|
||||
return null;
|
||||
}
|
||||
//API url is `${root}${uuid}`
|
||||
return root + MojangAPILoader.getMojangUuidByUsername(username);
|
||||
return root + uuid;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in new issue
Block a user