mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-20 15:43:13 +09:00
Keep accepting uploads from instances without epochs
A host running the plugin from before epochs never sends one, so after an import or delete every upload it made was discarded while the instance believed it succeeded. The Lua now always sends its epoch, and an upload without one is compared by generation against the stored data the way it was before, taking over the stored epoch. Those hosts can still overwrite an import with a copy they failed to upload, which the README now says. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
2529683c2b
commit
5634651de1
5 files changed
+48
-5
No files matched your search
@@ -4,7 +4,10 @@ import { StringEnum, jsonArray } from "@clusterio/lib";
|
||||
// .\module\serialize.lua:serialize.serialize_player()
|
||||
export type IpcPlayerData = {
|
||||
generation: number,
|
||||
/** Bumped when the stored data is imported or deleted, invalidating copies held by instances */
|
||||
/**
|
||||
* Bumped when the stored data is imported or deleted, invalidating copies held by instances.
|
||||
* Instances from before epochs were added leave it out of uploads.
|
||||
*/
|
||||
epoch?: number,
|
||||
name: string,
|
||||
controller?: string,
|
||||
|
||||
Reference in new issue
Block a user