testing-utilities-js
testing-utilities-js copied to clipboard
Incorrect determination of the presence of timeControl.
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;
o no
?????
what
h
the mod may not be in the list of mods, but it will be shown in Core.settings that it is enabled