mirror of
https://github.com/azures04/crafatar.git
synced 2026-05-06 11:00:39 +02:00
add missing status for empty capes
This commit is contained in:
@@ -356,7 +356,7 @@ exp.get_render = function(rid, userId, scale, helm, body, callback) {
|
|||||||
exp.get_cape = function(rid, userId, callback) {
|
exp.get_cape = function(rid, userId, callback) {
|
||||||
exp.get_image_hash(rid, userId, "cape", function(err, status, cape_hash) {
|
exp.get_image_hash(rid, userId, "cape", function(err, status, cape_hash) {
|
||||||
if (!cape_hash) {
|
if (!cape_hash) {
|
||||||
callback(err, null, null, null);
|
callback(err, null, status, null);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
var capepath = path.join(__dirname, "..", config.capes_dir, cape_hash + ".png");
|
var capepath = path.join(__dirname, "..", config.capes_dir, cape_hash + ".png");
|
||||||
|
|||||||
Reference in New Issue
Block a user