1
0
Fork 0
mirror of https://github.com/Acamaeda/The-Modding-Tree.git synced 2024-11-23 17:01:47 +00:00

Switched to parseFloat

This commit is contained in:
Harley White 2021-05-18 14:35:31 -04:00
parent 756bc3dec7
commit c661bfc011
2 changed files with 3 additions and 1 deletions

View file

@ -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.

View file

@ -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
}