MEEPofFaith/testing-utilities-js

Incorrect determination of the presence of timeControl.

Zelaux opened this issue · 5 comments

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

?????

tezlm commented

what

h

the mod may not be in the list of mods, but it will be shown in Core.settings that it is enabled