@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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rbxts/covenant",
3
- "version": "3.2.1",
3
+ "version": "3.2.2",
4
4
  "main": "src/init.luau",
5
5
  "scripts": {
6
6
  "build": "rbxtsc",
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, self:worldGet(entity, c))
488
+ subscriber(entity, nil, lastState)
488
489
  end
489
490
  for _v in _result do
490
491
  _callback_1(_v, _v, _result)