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

[Components] Fix components improperly setting _fields #3537

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

ChrisLR
Copy link
Contributor

@ChrisLR ChrisLR commented May 13, 2024

Brief overview of PR changes/additions

Since the last refactoring, the _fields in components is getting improperly set.
This fix modifies the metaclass constructor to ensure that the dict is properly set for each component once.

I have added a test and tested locally, I think this fix should work.
It's likely not the most elegant but since lyrewyn told me about the issue and I don't know how long it will take me
to refine, so I am opening as is for now.

Motivation for adding to Evennia

Bugfix

Other info (issues closed, discussion etc)

@ChrisLR ChrisLR marked this pull request as ready for review May 14, 2024 20:28
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.

None yet

1 participant