diff --git a/changelog.md b/changelog.md index f4272af..745b993 100644 --- a/changelog.md +++ b/changelog.md @@ -1,5 +1,8 @@ # The Modding Tree changelog: +### v2.5.11.1 - 5/27/21 +- Fixed issues caused when the tree tab is disabled. + ### v2.5.11 - 5/27/21 - Finished part 1 of the "making a mod" tutorial. - The challenge that you are currently in is highlighted, and will not be hidden if "hide completed challenges" is on and it is already completed. diff --git a/demo.html b/demo.html index 251e844..b5264a5 100644 --- a/demo.html +++ b/demo.html @@ -67,8 +67,7 @@
{{VERSION.withoutName}}
+ v-if="((player.navTab == 'none' && (tmp[player.tab].row == 'side' || tmp[player.tab].row == 'otherside' || player[player.tab].prevTab)) || player[player.navTab]?.prevTab)" class="other-back overlayThing" onclick="goBack(player.navTab == 'none' ? player.tab : player.navTab)">←

i
diff --git a/index.html b/index.html index 904d566..49b0315 100644 --- a/index.html +++ b/index.html @@ -67,8 +67,7 @@
{{VERSION.withoutName}}
+ v-if="((player.navTab == 'none' && (tmp[player.tab].row == 'side' || tmp[player.tab].row == 'otherside' || player[player.tab].prevTab)) || player[player.navTab]?.prevTab)" class="other-back overlayThing" onclick="goBack(player.navTab == 'none' ? player.tab : player.navTab)">←

i
diff --git a/js/Demo/demoMod.js b/js/Demo/demoMod.js index a2b8cba..3d54dfd 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.11", + num: "2.5.11.1", name: "Dreams Really Do Come True", } diff --git a/js/game.js b/js/game.js index 7fdc645..3ad34fe 100644 --- a/js/game.js +++ b/js/game.js @@ -4,7 +4,7 @@ var gameEnded = false; // Don't change this const TMT_VERSION = { - tmtNum: "2.5.11", + tmtNum: "2.5.11.1", tmtName: "Dreams Really Do Come True" } diff --git a/js/utils.js b/js/utils.js index 09d9446..0bcfe46 100644 --- a/js/utils.js +++ b/js/utils.js @@ -173,7 +173,7 @@ function goBack(layer) { let nextTab = "none" if (player[layer].prevTab) nextTab = player[layer].prevTab - if (player.navTab !== "none" && (tmp[layer]?.row == "side" || tmp[layer].row == "side")) nextTab = player.lastSafeTab + if (player.navTab === "none" && (tmp[layer]?.row == "side" || tmp[layer].row == "otherside")) nextTab = player.lastSafeTab if (tmp[layer].leftTab) showNavTab(nextTab, layer) else showTab(nextTab, layer)