From ae0ddd0e329470b7eefa23eb2d7b982dd7378d73 Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Wed, 10 Feb 2021 21:20:40 -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 25d70dfb..5eda9bef 100644 --- a/commands/edit-avatar/eject.js +++ b/commands/edit-avatar/eject.js @@ -78,8 +78,8 @@ module.exports = class EjectCommand extends Command { const frame = await loadImage(path.join(__dirname, '..', '..', 'assets', 'images', 'eject', frameID)); if (i <= 11) { const rotation = (360 / 10) * i; - const x = ((320 / 10) * i) - (rotation / 2); - const y = ((frame.height / 2) - 25) + (rotation / 2) + const x = ((320 / 10) * i) + (rotation / 2); + const y = ((frame.height / 2) - 25) - (rotation / 2) ctx.drawImage(frame, 0, 0); ctx.rotate(rotation * (Math.PI / 180)); ctx.drawImage(avatar, x, y, 50, 50);