From 40c91e066f209838a6a41023d3447a101f2a0b40 Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Thu, 2 Apr 2020 15:55:52 -0400 Subject: [PATCH] Fix --- commands/avatar-edit/hat.js | 1 + 1 file changed, 1 insertion(+) diff --git a/commands/avatar-edit/hat.js b/commands/avatar-edit/hat.js index 68419a4c..85c4a7c6 100644 --- a/commands/avatar-edit/hat.js +++ b/commands/avatar-edit/hat.js @@ -131,6 +131,7 @@ module.exports = class HatCommand extends Command { async run(msg, { type, user, addX, addY, scale }) { scale /= 100; + if (scale === 0) scale = 1; const avatarURL = user.displayAvatarURL({ format: 'png', size: 512 }); try { const base = await loadImage(path.join(__dirname, '..', '..', 'assets', 'images', 'hat', `${type}.png`));