mirror of
https://github.com/Acamaeda/The-Modding-Tree.git
synced 2025-04-24 18:21:03 +00:00
Fixed Decimals not being kept on reset
This commit is contained in:
parent
4414580408
commit
4f99695b0a
4 changed files with 8 additions and 4 deletions
js
|
@ -663,7 +663,8 @@ function goBack() {
|
|||
|
||||
function layOver(obj1, obj2) {
|
||||
for (let x in obj2) {
|
||||
if (obj2[x] instanceof Object) layOver(obj1[x], obj2[x]);
|
||||
if (obj2[x] instanceof Decimal) obj1[x] = new Decimal(obj2[x])
|
||||
else if (obj2[x] instanceof Object) layOver(obj1[x], obj2[x]);
|
||||
else obj1[x] = obj2[x];
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue