@rbxts/covenant 1.5.11 → 1.5.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rbxts/covenant",
3
- "version": "1.5.11",
3
+ "version": "1.5.12",
4
4
  "main": "src/init.luau",
5
5
  "scripts": {
6
6
  "build": "rbxtsc",
package/src/covenant.luau CHANGED
@@ -790,8 +790,13 @@ do
790
790
  local _callback_4 = function(_param_1)
791
791
  local key = _param_1.key
792
792
  local value = _param_1.value
793
- local childEntity = self:worldEntity()
794
- entityTracker[key] = childEntity
793
+ local childEntity = entityTracker[key]
794
+ if childEntity == nil then
795
+ childEntity = self._world:entity()
796
+ local _entityTracker = entityTracker
797
+ local _childEntity = childEntity
798
+ _entityTracker[key] = _childEntity
799
+ end
795
800
  self:worldSet(childEntity, childIdentityComponent, value)
796
801
  self._world:add(childEntity, pair(ChildOf, entity))
797
802
  end