1
0
Fork 0
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:
Harley White 2021-01-17 15:15:52 -05:00
parent 4414580408
commit 4f99695b0a
4 changed files with 8 additions and 4 deletions

View file

@ -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];
}
}