Icon fix
This commit is contained in:
parent
87ea9efb52
commit
884cb268ef
1 changed files with 2 additions and 2 deletions
|
@ -153,12 +153,12 @@ module.exports = async (app, req, res) => {
|
|||
|
||||
res.contentType('image/png');
|
||||
let extrabit, offset2, size2;
|
||||
if (fs.existsSync(extra)) {
|
||||
if (fs.existsSync(fromIcons(extra))) {
|
||||
extrabit = icons[extra]
|
||||
offset2 = extrabit.spriteOffset.map(minusOrigOffset);
|
||||
size2 = extrabit.spriteSize;
|
||||
|
||||
extra = new Jimp(extra);
|
||||
extra = new Jimp(fromIcons(extra));
|
||||
useExtra = true
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue