From 5cc29121ef374c0b29924d7a9113f08e64f7ecad Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Fri, 29 Mar 2024 17:04:43 -0400 Subject: [PATCH] Test --- commands/pokedex/pokedex-box-sprite.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/pokedex/pokedex-box-sprite.js b/commands/pokedex/pokedex-box-sprite.js index 5e69b43c..00b5d3fb 100644 --- a/commands/pokedex/pokedex-box-sprite.js +++ b/commands/pokedex/pokedex-box-sprite.js @@ -74,7 +74,7 @@ module.exports = class PokedexBoxSpriteCommand extends Command { ctx.imageSmoothingEnabled = false; const ratio = 250 / 40; const height = 30 * ratio; - ctx.drawImage(this.client.pokemon.sprites, x, y, 40, 30, 0, 0, 250, height); + ctx.drawImage(this.client.pokemon.sprites, x, y, 40, 30, 0, 0, 40, 30); cropToContent(ctx, canvas, canvas.width, canvas.height); return msg.say(`#${pokemon.displayID} - ${pokemon.name}`, { files: [{