@rbxts/covenant 1.0.5 → 1.0.7

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,7 +1,7 @@
1
1
  {
2
2
  "name": "@rbxts/covenant",
3
- "version": "1.0.5",
4
- "main": "src/init.lua",
3
+ "version": "1.0.7",
4
+ "main": "src/covenant.luau",
5
5
  "scripts": {
6
6
  "build": "rbxtsc",
7
7
  "watch": "rbxtsc -w",
package/src/covenant.d.ts CHANGED
@@ -31,7 +31,7 @@ export declare class Covenant {
31
31
  private setupPredictionClient;
32
32
  private setupPredictionServer;
33
33
  private setupPrediction;
34
- private setupRelicationServer;
34
+ private setupReplicationServer;
35
35
  private setupReplicationPayload;
36
36
  private setupReplicationClient;
37
37
  private setupReplication;
package/src/covenant.luau CHANGED
@@ -137,7 +137,7 @@ do
137
137
  self:setupPredictionServer()
138
138
  end
139
139
  end
140
- function Covenant:setupRelicationServer()
140
+ function Covenant:setupReplicationServer()
141
141
  self:schedule(RunService.Heartbeat, function()
142
142
  if next(self.worldChangesForReplication) == nil then
143
143
  return nil
@@ -225,7 +225,7 @@ do
225
225
  end
226
226
  function Covenant:setupReplication()
227
227
  if RunService:IsServer() then
228
- self:setupRelicationServer()
228
+ self:setupReplicationServer()
229
229
  self:setupReplicationPayload()
230
230
  end
231
231
  if RunService:IsClient() then
@@ -807,6 +807,9 @@ do
807
807
  if _result_1 ~= nil then
808
808
  -- ▼ ReadonlyArray.forEach ▼
809
809
  local _callback = function(entity)
810
+ if not self:worldHas(entity, identityComponent) then
811
+ return nil
812
+ end
810
813
  self:worldDelete(entity)
811
814
  end
812
815
  for _k, _v in _result_1 do
package/src/index.d.ts DELETED
@@ -1,2 +0,0 @@
1
- import { Covenant } from "./covenant";
2
- export = Covenant;
package/src/init.luau DELETED
@@ -1,4 +0,0 @@
1
- -- Compiled with roblox-ts v3.0.0
2
- local TS = _G[script]
3
- local Covenant = TS.import(script, script, "covenant").Covenant
4
- return Covenant