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:
parent
a98bf3d798
commit
756bc3dec7
2 changed files with 4 additions and 4 deletions
js
|
@ -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…
Add table
Add a link
Reference in a new issue