mirror of
https://github.com/littensy/charm.git
synced 2026-10-20 17:51:37 +00:00
fix: use shallow copy for state snapshots (#9)
This commit is contained in:
parent
8a35fce65d
commit
a3b9d562b9
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue