fix: use shallow copy for state snapshots (#9)

This commit is contained in:
nonamie 2024-06-14 05:31:47 +03:00 • committed by GitHub
parent 8a35fce65d
commit a3b9d562b9
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
local diffs = patch.diff(stateSnapshot, state)
stateSnapshot = state
stateSnapshot = table.clone(state)
changed = false
for _, player in Players:GetPlayers() do