This commit is contained in:
101arrowz 2019-10-20 13:28:36 -07:00 committed by Colon
parent 87ea9efb52
commit 884cb268ef

View file

@ -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
}