From b5f03e4d0ab3f8b22536d0f6166e12a45c077d13 Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Tue, 23 Jul 2019 21:02:10 -0400 Subject: [PATCH] Fix --- commands/image-edit/cursed-sponge.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/image-edit/cursed-sponge.js b/commands/image-edit/cursed-sponge.js index 02576a4f..a9033865 100644 --- a/commands/image-edit/cursed-sponge.js +++ b/commands/image-edit/cursed-sponge.js @@ -34,7 +34,7 @@ module.exports = class CursedSpongeCommand extends Command { let width = 0; for (let i = 0; i < amount; i++) { const row = Math.ceil((i + 1) / 10); - ctx.drawImage(sponge, width, sponge.height * row); + ctx.drawImage(sponge, width, sponge.height * (row - 1)); if ((width + sponge.width) === (sponge.width * (rows > 1 ? 10 : amount))) width = 0; else width += sponge.width; }