Modify table ref for "stateSnapshot" when changes happen

This commit is contained in:
nonamie 2024-06-13 23:28:22 +03:00 • committed by GitHub
parent 8a35fce65d
commit ed61f9814f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -86,7 +86,7 @@ local function server(options: ServerOptions): ServerSyncer
end end
local diffs = patch.diff(stateSnapshot, state) local diffs = patch.diff(stateSnapshot, state)
stateSnapshot = state stateSnapshot = table.clone(state)
changed = false changed = false
for _, player in Players:GetPlayers() do for _, player in Players:GetPlayers() do