1
0
Fork 0
mirror of https://github.com/Acamaeda/The-Modding-Tree.git synced 2025-04-24 02:01:03 +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

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