@rbxts/covenant 3.0.0 → 3.0.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rbxts/covenant",
3
- "version": "3.0.0",
3
+ "version": "3.0.1",
4
4
  "main": "src/init.luau",
5
5
  "scripts": {
6
6
  "build": "rbxtsc",
package/src/covenant.luau CHANGED
@@ -679,6 +679,9 @@ do
679
679
  self:worldSet(entity, identityComponent, state)
680
680
  return entity
681
681
  end, function(entity)
682
+ if not self:worldHas(entity, identityComponent) then
683
+ return nil
684
+ end
682
685
  self:worldDelete(entity)
683
686
  end)
684
687
  end