mirror of
https://github.com/azures04/crafatar.git
synced 2026-03-21 23:41:18 +01:00
use cache lookup for username skin types
fixes steve-model renders for usernames on first request after uuid request was made before
This commit is contained in:
parent
4468b55b4f
commit
c39019074b
@ -25,6 +25,8 @@ function store_skin(rid, userId, profile, cache_details, callback) {
|
|||||||
if (!err && userId.length > 16) {
|
if (!err && userId.length > 16) {
|
||||||
// updating username with model info from uuid details
|
// updating username with model info from uuid details
|
||||||
cache.set_slim(rid, profile.name, slim);
|
cache.set_slim(rid, profile.name, slim);
|
||||||
|
} else {
|
||||||
|
slim = cache_details ? cache_details.slim : undefined;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!err && url) {
|
if (!err && url) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user