mirror of
https://github.com/azures04/crafatar.git
synced 2026-03-21 23:41:18 +01:00
parent
c54e3020e9
commit
f36cfa7898
@ -245,7 +245,7 @@ img.preload {
|
||||
.avatar.jeb:hover {background-image: url("/avatars/853c80ef3c3749fdaa49938b674adae6?size=64&helm")}
|
||||
|
||||
.avatar.notch {background-image: url("/avatars/069a79f444e94726a5befca90e38aaf5?size=64")}
|
||||
/* Notch fucked up his helm */
|
||||
.avatar.notch:hover {background-image: url("/avatars/069a79f444e94726a5befca90e38aaf5?size=64&helm")}
|
||||
|
||||
.avatar.dinnerbone {background-image: url("/avatars/61699b2ed3274a019f1e0ea8c3f06bc6?size=64")}
|
||||
.avatar.dinnerbone:hover {background-image: url("/avatars/61699b2ed3274a019f1e0ea8c3f06bc6?size=64&helm")}
|
||||
|
||||
@ -47,6 +47,10 @@ exp.extract_helm = function(rid, facefile, buffer, outname, callback) {
|
||||
face_img.paste(0, 0, helm_img, function(img_err, face_helm_img) {
|
||||
if (img_err) {
|
||||
callback(img_err);
|
||||
} else {
|
||||
if (!skin_img.__trans) {
|
||||
logging.log(rid, "Skin is not transparent, skipping helm!");
|
||||
callback(null);
|
||||
} else {
|
||||
face_helm_img.toBuffer("png", {compression: "none"}, function(buf_err2, face_helm_buffer) {
|
||||
// FIXME: buf_err2 is not handled
|
||||
@ -60,6 +64,7 @@ exp.extract_helm = function(rid, facefile, buffer, outname, callback) {
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user