Incorrect determination of the presence of timeControl.
Zelaux opened this issue · 5 comments
Zelaux commented
I ran into this problem when setting the position of the cheat menu button in Braindustry and making it dependent on your mod and timeControl mod. When I removed both mods from the mods folder then Core.settings.getBool("mod -" + modName + "- enabled", false)
returned true so I suggest using my code.
My code:
let TCOffset = Core.settings.getBool("mod-time-control-enabled", false) &&
Vars.mods!=null && Vars.mods.getMod("time-control")!=null ? 62 : 0;
SMOLKEYS commented
o no
MEEPofFaith commented
?????
tezlm commented
what
FlinTyX commented
h
Zelaux commented
the mod may not be in the list of mods, but it will be shown in Core.settings that it is enabled