From 41b8f0178b978e8c687cbdcb88898d5264b6d779 Mon Sep 17 00:00:00 2001 From: 7cc5c4f330d47060 <samsungipadistaken@outlook.com> Date: Tue, 11 Feb 2025 19:20:47 -0500 Subject: [PATCH] Clamp scale value, to prevent incorrect math --- commands/scale.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/scale.js b/commands/scale.js index d64af94..5d685a8 100644 --- a/commands/scale.js +++ b/commands/scale.js @@ -5,7 +5,7 @@ import { getMessage } from '../util/lang.js' */ const execute = (c) => { if(c.args[0] == "set"){ - const scale = +c.args[1] + const scale = Math.min(Math.max(+c.args[1],0.0625),16) c.reply({ translate: getMessage(c.lang, 'command.scale.set'), color: c.colors.secondary,