@rbxts/covenant 1.3.3 → 1.3.4
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 -4
- package/src/helpers.luau +1 -1
package/package.json
CHANGED
package/src/covenant.luau
CHANGED
|
@@ -593,6 +593,7 @@ do
|
|
|
593
593
|
local parentEntityTrackerComponent = self:worldInternalComponent()
|
|
594
594
|
local parentComponent = self:worldInternalComponent()
|
|
595
595
|
self:defineComponentNetworkBehavior(parentComponent, replicated, predictionValidator)
|
|
596
|
+
self:defineComponentNetworkBehavior(parentEntityTrackerComponent, replicated, predictionValidator)
|
|
596
597
|
local queryParentComponent = self:worldQuery(parentComponent):cached()
|
|
597
598
|
local willUpdate = true
|
|
598
599
|
local function indicateUpdate()
|
|
@@ -686,9 +687,10 @@ do
|
|
|
686
687
|
local key = _param_1.key
|
|
687
688
|
local value = _param_1.value
|
|
688
689
|
local childEntity = entityTracker[key]
|
|
689
|
-
|
|
690
|
-
local _arg0 = self:worldContains(childEntity)
|
|
690
|
+
local _arg0 = childEntity ~= nil
|
|
691
691
|
assert(_arg0)
|
|
692
|
+
local _arg0_1 = self:worldContains(childEntity)
|
|
693
|
+
assert(_arg0_1)
|
|
692
694
|
self:worldSet(childEntity, childIdentityComponent, value)
|
|
693
695
|
end
|
|
694
696
|
for _k, _v in entriesChanged do
|
|
@@ -700,9 +702,10 @@ do
|
|
|
700
702
|
local _entityTracker = entityTracker
|
|
701
703
|
local _key = key
|
|
702
704
|
local childEntity = _entityTracker[_key]
|
|
703
|
-
|
|
704
|
-
local _arg0 = self:worldContains(childEntity)
|
|
705
|
+
local _arg0 = childEntity ~= nil
|
|
705
706
|
assert(_arg0)
|
|
707
|
+
local _arg0_1 = self:worldContains(childEntity)
|
|
708
|
+
assert(_arg0_1)
|
|
706
709
|
self:worldDelete(childEntity)
|
|
707
710
|
local _entityTracker_1 = entityTracker
|
|
708
711
|
local _key_1 = key
|
package/src/helpers.luau
CHANGED