@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 +1 -1
- package/src/covenant.luau +7 -2
package/package.json
CHANGED
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 =
|
|
794
|
-
|
|
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
|