1
0
Fork 0
mirror of https://github.com/Acamaeda/The-Modding-Tree.git synced 2024-11-24 17:31:50 +00:00

Fixed using text inputs for ints

This commit is contained in:
Harley White 2021-05-18 14:27:11 -04:00
parent a98bf3d798
commit 756bc3dec7
2 changed files with 4 additions and 4 deletions

View file

@ -5,7 +5,7 @@
- Bars will visually update more quickly. - Bars will visually update more quickly.
- Fixed a major particle-related issue. - Fixed a major particle-related issue.
- Fixed autoUpgrade. - Fixed autoUpgrade.
- Fixed a minor visal issue with tree nodes. - Fixed a minor visual issue with tree nodes.
# v2.5.7 - 5/15/21 # 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. - 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.

View file

@ -336,9 +336,9 @@ document.title = modInfo.name
function toValue(value, oldValue) { function toValue(value, oldValue) {
if (oldValue instanceof Decimal) if (oldValue instanceof Decimal)
return new Decimal (value) return new Decimal (value)
else if (!isNaN(oldValue)) if (!isNaN(oldValue))
return value.toNumber() return parseInt(value, 10)
else return value return value
} }
// Variables that must be defined to display popups // Variables that must be defined to display popups