@rbxts/replion 1.0.3 → 1.0.5
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/README.md +1 -1
- package/package.json +1 -1
- package/src/Server.lua +3 -3
package/README.md
CHANGED
package/package.json
CHANGED
package/src/Server.lua
CHANGED
|
@@ -55,7 +55,7 @@ type Replion = typeof(setmetatable({}, Server));
|
|
|
55
55
|
Server._activeReplions = {} :: { [Player]: { [string]: Replion } };
|
|
56
56
|
Server._globalReplions = {} :: { [string]: Replion };
|
|
57
57
|
|
|
58
|
-
--
|
|
58
|
+
-- This method is private because this it isn't able to give correct types for the found Replion, and that's unideal for public use.
|
|
59
59
|
function Server._getPlayerReplion(player: Player, channel: string)
|
|
60
60
|
local playerReplions = Server._activeReplions[player];
|
|
61
61
|
if not playerReplions then return nil; end;
|
|
@@ -63,7 +63,7 @@ function Server._getPlayerReplion(player: Player, channel: string)
|
|
|
63
63
|
return playerReplions[channel];
|
|
64
64
|
end;
|
|
65
65
|
|
|
66
|
-
--
|
|
66
|
+
-- This method is private because this it isn't able to give correct types for the found Replion, and that's unideal for public use.
|
|
67
67
|
function Server._getGlobalReplion(channel: string)
|
|
68
68
|
return Server._globalReplions[channel];
|
|
69
69
|
end;
|
|
@@ -73,7 +73,7 @@ function Server.new(config: ServerConfig)
|
|
|
73
73
|
|
|
74
74
|
self.player = config.replicateTo;
|
|
75
75
|
self.channel = config.channel;
|
|
76
|
-
self.data =
|
|
76
|
+
self.data = Sift.Dictionary.copyDeep(config.data);
|
|
77
77
|
|
|
78
78
|
self._queuedUpdates = {} :: Shared.GenericDataTable;
|
|
79
79
|
self._isQueued = false;
|