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:
Hornwitser committed 2020-04-09 16:17:38 +02:00
1 parent d537e5cf6b
commit 59111cc844
1 file changed
+3
+3
View File
@@ -18,6 +18,9 @@ impl.events[api.events.on_server_startup] = function()
instance_name = nil,
}
end
-- Replay will just desync after the save is patched
game.disable_replay()
end
-- Internal API