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

ModContentRegistry: Filter item descriptor by resource form #246

Merged
merged 1 commit into from
Jan 6, 2024

Conversation

Th3Fanbus
Copy link
Contributor

In the IsDescriptorFilteredOut() function, add additional checks to filter out item descriptors depending on their resource form. Without this change, the IncludeNonSolid flag does absolutely nothing. Also filter out any non-subclasses of UFGItemDescriptor, which shouldn't have been registered in the item registry to begin with.

In the `IsDescriptorFilteredOut()` function, add additional checks to
filter out item descriptors depending on their resource form. Without
this change, the `IncludeNonSolid` flag does absolutely nothing. Also
filter out any non-subclasses of `UFGItemDescriptor`, which shouldn't
have been registered in the item registry to begin with.

Signed-off-by: Angel Pons <[email protected]>
@mircearoata mircearoata merged commit 5c2a6aa into satisfactorymodding:dev Jan 6, 2024
1 check failed
@Th3Fanbus Th3Fanbus deleted the dev-itemclass-thing branch November 5, 2024 16:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

Successfully merging this pull request may close these issues.

2 participants