@rbxts/covenant 3.2.1 → 3.2.2
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 +2 -1
package/package.json
CHANGED
package/src/covenant.luau
CHANGED
|
@@ -478,13 +478,14 @@ do
|
|
|
478
478
|
-- ▼ ReadonlyArray.forEach ▼
|
|
479
479
|
local _callback = function(c)
|
|
480
480
|
if self:worldHas(c) then
|
|
481
|
+
local lastState = self:worldGet(entity, c)
|
|
481
482
|
local _stringifiedComponentSubscribers = self.stringifiedComponentSubscribers
|
|
482
483
|
local _arg0 = tostring(c)
|
|
483
484
|
local _result = _stringifiedComponentSubscribers[_arg0]
|
|
484
485
|
if _result ~= nil then
|
|
485
486
|
-- ▼ ReadonlySet.forEach ▼
|
|
486
487
|
local _callback_1 = function(subscriber)
|
|
487
|
-
subscriber(entity, nil,
|
|
488
|
+
subscriber(entity, nil, lastState)
|
|
488
489
|
end
|
|
489
490
|
for _v in _result do
|
|
490
491
|
_callback_1(_v, _v, _result)
|