Skip to content

Conversation

@TheyCallMeRyan
Copy link

Proposed changes

If the oldArchetype is the same as the new archetype then don't do any transition

Related issues

See: #157

Additional comments

@memorycode
Copy link
Contributor

Thanks for the PR. Are you able to add a test to make sure that this fixes the issue?

Splits some of the logic from transitionArchetype into a separate function removeFromArchetype that can be utilized by both transitionArchetype and executeDespawn. 

Removes executeDespawn's dependency on transitionArchetype, solving the bug presented in matter-ecs#164.
@TheyCallMeRyan TheyCallMeRyan changed the title Prevents transitions from an archetype to itself Solves issues related to transitionArchetype Aug 15, 2025
@TheyCallMeRyan
Copy link
Author

Added another commit resolving the issue in #164 as well

@LastTalon
Copy link
Member

Can we please edit the title to reflect the changes that are happening and link appropriately with closing keywords before merging this?

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.

4 participants