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

Inconsistent Check behaviour when using DependsOnKeys #458

Open
Herobrine24 opened this issue Jan 25, 2025 · 0 comments
Open

Inconsistent Check behaviour when using DependsOnKeys #458

Herobrine24 opened this issue Jan 25, 2025 · 0 comments

Comments

@Herobrine24
Copy link
Contributor

Herobrine24 commented Jan 25, 2025

Issue:
When setting up an install option with multiple negative DependsOnKeys values and ACTION_ALLOW_SELECT as the NotMetAction, the install option will remain selected when NotMetAction is true due to first having selected the first install option as ordered in DependsOnKeys. If NotMetAction is true and the non-first option is selected, this conditional option will become unchecked.

Expected behaviour:
The selection of the first OptionKey causes the conditional install option to become unchecked.

Initial state:
Image

First OptionKey is selected:
Image

Non-first OptionKey is selected:
Image

Example Mod:
RemoveEnemyGrenades_1.0.zip

Example Mod with workaround:
RemoveEnemyGrenades_1.0.zip
A hidden OP_NOTHING option is used as the first OptionKey in DependsOnKeys to achieve the desired behaviour.

@Herobrine24 Herobrine24 changed the title Option Key Dependency inconsistent check behaviour Inconsistent Check behaviour when using DependsOnKeys Jan 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant