1
0
Fork 0
mirror of https://github.com/Acamaeda/The-Modding-Tree.git synced 2025-05-12 04:51:06 +00:00

Locked subtabs don't cause notify

This commit is contained in:
Harley White 2021-09-08 00:01:24 -04:00
parent b602605bda
commit f31e345f2f
4 changed files with 10 additions and 8 deletions

View file

@ -13,7 +13,7 @@ let modInfo = {
// Set your version in num and name
let VERSION = {
num: "2.6.5.1",
num: "2.6.6",
name: "Fixed Reality",
}

View file

@ -3,7 +3,7 @@ var needCanvasUpdate = true;
// Don't change this
const TMT_VERSION = {
tmtNum: "2.6.5.1",
tmtNum: "2.6.6",
tmtName: "Fixed Reality"
}

View file

@ -219,12 +219,12 @@ function notifyLayer(name) {
}
function subtabShouldNotify(layer, family, id) {
let subtab = {}
if (family == "mainTabs") subtab = tmp[layer].tabFormat[id]
else subtab = tmp[layer].microtabs[family][id]
if (subtab.embedLayer) return tmp[subtab.embedLayer].notify
else return subtab.shouldNotify
let subtab = {}
if (family == "mainTabs") subtab = tmp[layer].tabFormat[id]
else subtab = tmp[layer].microtabs[family][id]
if (!subtab.unlocked) return false
if (subtab.embedLayer) return tmp[subtab.embedLayer].notify
else return subtab.shouldNotify
}
function subtabResetNotify(layer, family, id) {