mirror of
https://github.com/Acamaeda/The-Modding-Tree.git
synced 2024-11-22 00:21:32 +00:00
Fixed using text inputs for ints
This commit is contained in:
parent
a98bf3d798
commit
756bc3dec7
2 changed files with 4 additions and 4 deletions
|
@ -5,7 +5,7 @@
|
|||
- Bars will visually update more quickly.
|
||||
- Fixed a major particle-related issue.
|
||||
- Fixed autoUpgrade.
|
||||
- Fixed a minor visal issue with tree nodes.
|
||||
- Fixed a minor visual issue with tree nodes.
|
||||
|
||||
# v2.5.7 - 5/15/21
|
||||
- Added a particle system! Not only can it be used for visual effects, but particles can interact with the mouse. They could be used to create golden cookies or collectables, for example.
|
||||
|
|
|
@ -336,9 +336,9 @@ document.title = modInfo.name
|
|||
function toValue(value, oldValue) {
|
||||
if (oldValue instanceof Decimal)
|
||||
return new Decimal (value)
|
||||
else if (!isNaN(oldValue))
|
||||
return value.toNumber()
|
||||
else return value
|
||||
if (!isNaN(oldValue))
|
||||
return parseInt(value, 10)
|
||||
return value
|
||||
}
|
||||
|
||||
// Variables that must be defined to display popups
|
||||
|
|
Loading…
Reference in a new issue