mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-24 00:23:12 +09:00
Disable replay in patched save
Ensure that the replay is disabled after the game is patched by calling game.disable_replay(). It's not possible to replay a patched save, and it also stores every command sent into save, causing it to quickly grow into an unplayably large size.
This commit is contained in:
1 parent
d537e5cf6b
commit
59111cc844
1 file changed
+3
@@ -18,6 +18,9 @@ impl.events[api.events.on_server_startup] = function()
|
|||||||
instance_name = nil,
|
instance_name = nil,
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
-- Replay will just desync after the save is patched
|
||||||
|
game.disable_replay()
|
||||||
end
|
end
|
||||||
|
|
||||||
-- Internal API
|
-- Internal API
|
||||||
|
|||||||
Reference in new issue
Block a user