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

Fixed world:delete() not invoking OnRemove hooks. #178

Merged
merged 8 commits into from
Jan 16, 2025

Conversation

Intrinsic-zyx
Copy link
Contributor

Brief Description of your Changes.

Fixed world:delete() not invoking OnRemove component hooks.

Impact of your Changes

world:delete() will now invoke OnRemove hooks.

Tests Performed

See: https://github.com/Intrinsic-zyx/jecs/blob/a0c6e7bd87bb0fd5a7f4c6e6028d98a5f05a57e2/test/tests.luau#L1663

Case #1 simply ensure the invocation of the OnRemove hook after world:delete is called upon an entity containing the hooked component.

Case #2 ensures that cleanup traits properly invoke the OnRemove hook as well.

@Ukendio Ukendio merged commit c354a29 into Ukendio:main Jan 16, 2025
2 checks passed
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.

2 participants