@rbxts/covenant 3.2.0 → 3.2.1

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/covenant.luau +13 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rbxts/covenant",
3
- "version": "3.2.0",
3
+ "version": "3.2.1",
4
4
  "main": "src/init.luau",
5
5
  "scripts": {
6
6
  "build": "rbxtsc",
package/src/covenant.luau CHANGED
@@ -478,7 +478,19 @@ do
478
478
  -- ▼ ReadonlyArray.forEach ▼
479
479
  local _callback = function(c)
480
480
  if self:worldHas(c) then
481
- self:worldSet(entity, c, nil)
481
+ local _stringifiedComponentSubscribers = self.stringifiedComponentSubscribers
482
+ local _arg0 = tostring(c)
483
+ local _result = _stringifiedComponentSubscribers[_arg0]
484
+ if _result ~= nil then
485
+ -- ▼ ReadonlySet.forEach ▼
486
+ local _callback_1 = function(subscriber)
487
+ subscriber(entity, nil, self:worldGet(entity, c))
488
+ end
489
+ for _v in _result do
490
+ _callback_1(_v, _v, _result)
491
+ end
492
+ -- ▲ ReadonlySet.forEach ▲
493
+ end
482
494
  end
483
495
  end
484
496
  for _k, _v in _exp do