Skip to content
This repository has been archived by the owner on Jan 25, 2022. It is now read-only.

Incorrect determination of the presence of timeControl. #11

Open
Zelaux opened this issue Aug 29, 2021 · 5 comments
Open

Incorrect determination of the presence of timeControl. #11

Zelaux opened this issue Aug 29, 2021 · 5 comments

Comments

@Zelaux
Copy link

Zelaux commented Aug 29, 2021

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
Copy link

o no

@MEEPofFaith
Copy link
Owner

?????

@tezlm
Copy link

tezlm commented Aug 29, 2021

what

@FlinTyX
Copy link

FlinTyX commented Aug 29, 2021

h

@Zelaux
Copy link
Author

Zelaux commented Aug 29, 2021

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants