mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-04 15:56:52 +02:00
Fix
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user