Skip to content

fix: attachable despawn vs detach order & ownership test.#3895

Merged
NoelStephensUnity merged 4 commits intodevelop-2.0.0from
fix/attachable-and-ownership-adjustments-PR-84876-related
Mar 12, 2026
Merged

fix: attachable despawn vs detach order & ownership test.#3895
NoelStephensUnity merged 4 commits intodevelop-2.0.0from
fix/attachable-and-ownership-adjustments-PR-84876-related

Conversation

@NoelStephensUnity
Copy link
Member

@NoelStephensUnity NoelStephensUnity commented Mar 11, 2026

Purpose of this PR

Fixing an issue where attachables could throw an exception if an item's attachable is attached to a node and is set to detach upon ownership change and not despawn, then if the attachable item is despawned while still attached it never detaches itself from the node during a shutdown.

Fixing an issue within WhenOwnershipIsChanged_OwnershipValuesUpdateCorrectly and use of FindObjects.ByType<T> where it should have directly found the instance by NetworkObjectId in the targeted client's spawn list.

Jira ticket

MTT-14634

Changelog

  • Fixed: Issue where an attachable could log an error upon being de-spawned during shutdown.

Documentation

  • No documentation changes or additions were necessary.

Testing & QA (How your changes can be verified during release Playtest)

Functional Testing

Manual testing :

  • Manual testing done

Automated tests:

  • Covered by existing automated tests
  • Covered by new automated tests

Does the change require QA team to:

  • Review automated tests?
  • Execute manual tests?
  • Provide feedback about the PR?

If any boxes above are checked the QA team will be automatically added as a PR reviewer.

Backports

No back port is required.

Fixing an issue where attachables could throw an exception if an item's attachable is attached to a node and is set to detach upon ownership change and not despawn, then if the attachable item is despawned while still attached it never detaches itself from the node during a shutdown.

Fixing an issue where sorting no longer is a guaranteed order.
@NoelStephensUnity NoelStephensUnity requested a review from a team as a code owner March 11, 2026 18:27
Adding changelog entry.
@NoelStephensUnity NoelStephensUnity enabled auto-merge (squash) March 12, 2026 16:43
@NoelStephensUnity NoelStephensUnity merged commit ab1f25e into develop-2.0.0 Mar 12, 2026
20 checks passed
@NoelStephensUnity NoelStephensUnity deleted the fix/attachable-and-ownership-adjustments-PR-84876-related branch March 12, 2026 20:31
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