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:
parent
756bc3dec7
commit
c661bfc011
2 changed files with 3 additions and 1 deletions
|
@ -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.
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue