mirror of
https://github.com/azures04/crafatar.git
synced 2026-03-21 23:41:18 +01:00
Make sure 'slim' model is correctly checked
The 'textures.SKIN.metadata.model' field seems to be only present if set to 'slim', so currently this change has no effect however, if the field is returned in other cases (in future), we need to make sure it acually reports 'slim'
This commit is contained in:
parent
1144b6755a
commit
1f0f696151
@ -135,7 +135,7 @@ exp.get_uuid_info = function(profile, type, callback) {
|
|||||||
var url = Object.get(profile, "textures." + type + ".url");
|
var url = Object.get(profile, "textures." + type + ".url");
|
||||||
var slim;
|
var slim;
|
||||||
if (type === "SKIN") {
|
if (type === "SKIN") {
|
||||||
slim = Object.get(profile, "textures.SKIN.metadata.model");
|
slim = Object.get(profile, "textures.SKIN.metadata.model") === "slim";
|
||||||
}
|
}
|
||||||
|
|
||||||
callback(url || null, !!slim);
|
callback(url || null, !!slim);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user