From 0ad2913d89d0dabc0a9c2903c9c6edf6cf852216 Mon Sep 17 00:00:00 2001 From: lizhuoyuan <2820814112@qq.com> Date: Fri, 7 Feb 2025 10:38:13 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E5=BD=95=E5=83=8F=E6=A8=A1=E5=BC=8F?= =?UTF-8?q?=E4=B8=8B=E6=94=AF=E6=8C=81=E8=BE=93=E5=85=A5=E8=B4=9F=E6=95=B4?= =?UTF-8?q?=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- libs/events.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/events.js b/libs/events.js index 44908737..50698cca 100644 --- a/libs/events.js +++ b/libs/events.js @@ -1985,7 +1985,7 @@ events.prototype._action_setHeroIcon = function (data, x, y, prefix) { events.prototype._action_input = function (data, x, y, prefix) { this.__action_getInput(core.replaceText(data.text, prefix), false, function (value) { - value = Math.abs(parseInt(value) || 0); + value = parseInt(value) || 0; core.status.route.push("input:" + value); core.setFlag("input", value); core.doAction();