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

Make config enums ignore case #76

Merged
merged 1 commit into from
Oct 3, 2024
Merged

Make config enums ignore case #76

merged 1 commit into from
Oct 3, 2024

Conversation

Lyfts
Copy link
Member

@Lyfts Lyfts commented Oct 3, 2024

If we have an enum config with the following possible values:
VALUE1 - default
VALUE2

Previously If the player inputted value2 in the config file it will fail to find a matching enum for that and revert back to the default.

This makes it look for a case insensitive match between the input and the valid values, if one is found it will also be saved so that we won't have to go through this process every time.

@Lyfts Lyfts requested a review from a team October 3, 2024 15:09
@Dream-Master Dream-Master merged commit 96ce85f into master Oct 3, 2024
1 check passed
@Dream-Master Dream-Master deleted the enum-ignore-case branch October 3, 2024 16:11
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

Successfully merging this pull request may close these issues.

3 participants