From 10b7265c4ac6c26f3f8500c8b10a29cea9446c8b Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Fri, 12 Jun 2020 10:49:17 -0400 Subject: [PATCH] Fix --- commands/edit-image/yu-gi-oh-gen.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/commands/edit-image/yu-gi-oh-gen.js b/commands/edit-image/yu-gi-oh-gen.js index 03303219..761e6667 100644 --- a/commands/edit-image/yu-gi-oh-gen.js +++ b/commands/edit-image/yu-gi-oh-gen.js @@ -113,9 +113,8 @@ module.exports = class YuGiOhGenCommand extends Command { const ctx = canvas.getContext('2d'); ctx.fillStyle = 'white'; ctx.fillRect(0, 0, base.width, base.height); - const { x, y } = centerImagePart(data, 590, 590, 109, 241); const height = 590 / data.width; - ctx.drawImage(data, x, y, 590, height); + ctx.drawImage(data, 109, 241, 590, height); ctx.drawImage(base, 0, 0); ctx.drawImage(atr, 669, 61, 77, 77); for (let i = 0; i < level; i++) {