Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add a nice way for mods to check if another mod is in use (loaded and active) #355

Open
Qubus0 opened this issue Nov 17, 2023 · 0 comments
Assignees
Labels
enhancement New feature or request good first issue Good for newcomers
Milestone

Comments

@Qubus0
Copy link
Collaborator

Qubus0 commented Nov 17, 2023

Currently something like this needs to be used to check if a mod is in use.

if ModLoaderMod.is_mod_loaded(mod_id) and ModLoaderMod.get_mod_data(mod_id).is_active:

Since this is likely a common check to mesh well with other mods, we might want to add a new ModLoaderMod method to do it in one go.

only using is_mod_loaded would have been the old way to check this, but this does not work anymore since we are loading all mods to access the manifest data

@Qubus0 Qubus0 added enhancement New feature or request good first issue Good for newcomers labels Nov 17, 2023
@KANAjetzt KANAjetzt added this to the 4.x - 7.0.0 milestone Apr 18, 2024
@KANAjetzt KANAjetzt self-assigned this Apr 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants