Skip to content
This repository has been archived by the owner on Jan 18, 2022. It is now read-only.

Commit

Permalink
UTY-2714: Incorrect entity added/removed callback registration (#1473)
Browse files Browse the repository at this point in the history
* Correct callback registration to entity removed
  • Loading branch information
BryanJY-Wong authored Sep 2, 2020
1 parent ed2fdb2 commit ff684b4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@

- Fixed an issue where authority changes returned by `ComponentUpdateSystem.GetAuthorityChangesReceived()` were returned in order from newest to oldest. [#1465](https://github.com/spatialos/gdk-for-unity/pull/1465)
- Fixed a bug where the build system would throw a null reference exception if you don't have a configuration for a worker type. [#1461](https://github.com/spatialos/gdk-for-unity/pull/1461)
- Fixed an incorrect callback registration for entity creation/removal in the `WorldCommandSender`. [#1473](https://github.com/spatialos/gdk-for-unity/pull/1462)

## `0.3.10` - 2020-08-18

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public WorldCommandSenderSubscriptionManager(World world) : base(world)
}
});

constraintsSystem.RegisterEntityAddedCallback(entityId =>
constraintsSystem.RegisterEntityRemovedCallback(entityId =>
{
if (!entityIdToSenderSubscriptions.TryGetValue(entityId, out var subscriptions))
{
Expand Down

0 comments on commit ff684b4

Please sign in to comment.