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

Commit ff684b4

Browse files
authored
UTY-2714: Incorrect entity added/removed callback registration (#1473)
* Correct callback registration to entity removed
1 parent ed2fdb2 commit ff684b4

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030

3131
- 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)
3232
- 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)
33+
- Fixed an incorrect callback registration for entity creation/removal in the `WorldCommandSender`. [#1473](https://github.com/spatialos/gdk-for-unity/pull/1462)
3334

3435
## `0.3.10` - 2020-08-18
3536

workers/unity/Packages/io.improbable.gdk.core/Subscriptions/StandardSubscriptionManagers/WorldCommands.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public WorldCommandSenderSubscriptionManager(World world) : base(world)
3333
}
3434
});
3535

36-
constraintsSystem.RegisterEntityAddedCallback(entityId =>
36+
constraintsSystem.RegisterEntityRemovedCallback(entityId =>
3737
{
3838
if (!entityIdToSenderSubscriptions.TryGetValue(entityId, out var subscriptions))
3939
{

0 commit comments

Comments
 (0)