From c661bfc011c539b7b0720b157287931c674197e9 Mon Sep 17 00:00:00 2001 From: Harley White Date: Tue, 18 May 2021 14:35:31 -0400 Subject: [PATCH] Switched to parseFloat --- changelog.md | 2 ++ js/utils.js | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/changelog.md b/changelog.md index 795a6c0..84f3142 100644 --- a/changelog.md +++ b/changelog.md @@ -1,5 +1,7 @@ # The Modding Tree changelog: +- Fixed using text inputs for Numbers. + # v2.5.8 - 5/17/21 - Added makeShinies, which creates a stationary particle in a random spot. - Bars will visually update more quickly. diff --git a/js/utils.js b/js/utils.js index d692278..d950d03 100644 --- a/js/utils.js +++ b/js/utils.js @@ -337,7 +337,7 @@ function toValue(value, oldValue) { if (oldValue instanceof Decimal) return new Decimal (value) if (!isNaN(oldValue)) - return parseInt(value, 10) + return parseFloat(value) return value }