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

Incorrect determination of the presence of timeControl. #11

@Zelaux

Description

@Zelaux

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;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions