mirror of
https://github.com/azures04/crafatar.git
synced 2026-03-22 07:51:17 +01:00
username request shouldn't set skin model
if it's set to slim (by a uuid request before), that would have been overwritten and set to not slim
This commit is contained in:
parent
4f667cc99f
commit
4468b55b4f
@ -19,7 +19,7 @@ function get_hash(url) {
|
||||
// gets the skin for +userId+ with +profile+
|
||||
// uses +cache_details+ to determine if the skin needs to be downloaded or can be taken from cache
|
||||
// face and face+helm images are extracted and stored to files
|
||||
// callback: error, skin hash, callback
|
||||
// callback: error, skin hash, slim
|
||||
function store_skin(rid, userId, profile, cache_details, callback) {
|
||||
networking.get_skin_info(rid, userId, profile, function(err, url, slim) {
|
||||
if (!err && userId.length > 16) {
|
||||
|
||||
@ -20,7 +20,7 @@ function get_info(rid, userId, profile, type, callback) {
|
||||
if (userId.length <= 16) {
|
||||
// username
|
||||
exp.get_username_url(rid, userId, type, function(err, url) {
|
||||
callback(err, url || null, false);
|
||||
callback(err, url || null, undefined);
|
||||
});
|
||||
} else {
|
||||
exp.get_uuid_info(profile, type, function(url, slim) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user