From b65215ac4a87d985cfa46441a29246e5db6d20d2 Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Wed, 10 Feb 2021 21:42:00 -0500 Subject: [PATCH] Fix --- commands/edit-avatar/eject.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/commands/edit-avatar/eject.js b/commands/edit-avatar/eject.js index 544af7c7..2cc0a209 100644 --- a/commands/edit-avatar/eject.js +++ b/commands/edit-avatar/eject.js @@ -76,9 +76,9 @@ module.exports = class EjectCommand extends Command { for (let i = 0; i < frameCount; i++) { const frameID = `frame_${i.toString().padStart(2, '0')}.gif`; const frame = await loadImage(path.join(__dirname, '..', '..', 'assets', 'images', 'eject', frameID)); - if (i <= 20) { + if (i <= 30) { ctx.drawImage(frame, 0, 0); - const x = (320 / 15) * i; + const x = ((320 / 15) * i) - 50; const y = (frame.height / 2) - 25; /* const rotation = (360 / 10) * i;