testing-utilities-js icon indicating copy to clipboard operation
testing-utilities-js copied to clipboard

Incorrect determination of the presence of timeControl.

Open Zelaux opened this issue 3 years ago • 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;

Zelaux avatar Aug 29 '21 16:08 Zelaux

o no

SMOLKEYS avatar Aug 29 '21 17:08 SMOLKEYS

?????

MEEPofFaith avatar Aug 29 '21 20:08 MEEPofFaith

what

tezlm avatar Aug 29 '21 20:08 tezlm

h

FlinTyX avatar Aug 29 '21 20:08 FlinTyX

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

Zelaux avatar Aug 29 '21 21:08 Zelaux