From 61ef75ee38507e75305fd359675e16e32a89bf4f Mon Sep 17 00:00:00 2001 From: Harley White Date: Wed, 19 May 2021 12:30:02 -0400 Subject: [PATCH] Fixed things not updating --- changelog.md | 3 +++ js/Demo/demoMod.js | 2 +- js/game.js | 2 +- js/technical/temp.js | 4 ++-- 4 files changed, 7 insertions(+), 4 deletions(-) diff --git a/changelog.md b/changelog.md index 5fac80d..987d2fa 100644 --- a/changelog.md +++ b/changelog.md @@ -1,5 +1,8 @@ # The Modding Tree changelog: +### v2.5.9.2 - 5/19/21 +- Fixed many issues with things not updating. + ### v2.5.9.1 - 5/18/21 - Made text inputs never give NaNs. diff --git a/js/Demo/demoMod.js b/js/Demo/demoMod.js index a691dee..5179e07 100644 --- a/js/Demo/demoMod.js +++ b/js/Demo/demoMod.js @@ -11,7 +11,7 @@ let modInfo = { // Set your version in num and name let VERSION = { - num: "2.5.9.1", + num: "2.5.9.2", name: "Dreams Really Do Come True", } diff --git a/js/game.js b/js/game.js index 990c59c..744a40c 100644 --- a/js/game.js +++ b/js/game.js @@ -5,7 +5,7 @@ var scrolled = false; // Don't change this const TMT_VERSION = { - tmtNum: "2.5.9.1", + tmtNum: "2.5.9.2", tmtName: "Dreams Really Do Come True" } diff --git a/js/technical/temp.js b/js/technical/temp.js index 1050d35..36a569f 100644 --- a/js/technical/temp.js +++ b/js/technical/temp.js @@ -113,8 +113,8 @@ function updateTempData(layerData, tmpData, funcsData) { for (item in funcsData){ if (Array.isArray(layerData[item])) { - if (item === "tabFormat" || item === "content") return // These are only updated when needed - updateTempData(layerData[item], tmpData[item], funcsData[item]) + if (item !== "tabFormat" && item !== "content") // These are only updated when needed + updateTempData(layerData[item], tmpData[item], funcsData[item]) } else if ((!!layerData[item]) && (layerData[item].constructor === Object) || (typeof layerData[item] === "object") && traversableClasses.includes(layerData[item].constructor.name)){ updateTempData(layerData[item], tmpData[item], funcsData[item])