mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-14 07:24:52 +09:00
Sync the page shown on each quick bar row (#1202)
* Sync the page shown on each quick bar row player_sync restored the content of the quick bar slots but not which page each row shows, which every save keeps per player on its own. After switching servers the rows could show other pages, and with them another set of slots. Fixes #1201 Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01JyNnVzRW4jPWaoWTxCyhM7 * Sync every quick bar slot when the pages are wider than 10 From Factorio 2.1 a quick bar page is as wide as the player set it, up to 100 slots. Only the first 100 slots were synced, so with wider pages the later pages kept the content of the destination, and restoring the page shown on a row could show those. --------- Co-authored-by: ILLISIS <jayson.harris01@gmail.com> Co-authored-by: Claude Fable 5.2 <noreply@anthropic.com> Co-authored-by: Danielv123 <danielv@danielv.no>
This commit is contained in:
5 files changed
+43
-4
No files matched your search
@@ -117,6 +117,7 @@ describe("player_sync plugin", function() {
|
||||
3: { t: "i", n: "main", s: 4, b: [2] },
|
||||
4: { t: "r", p: [1], y: "blueprint" },
|
||||
},
|
||||
quick_bar_pages: [2, 1, 3],
|
||||
crafting_queue: {
|
||||
crafting_queue: [{ recipe: "iron-gear-wheel", count: 5 }],
|
||||
crafting_queue_progress: 0.25,
|
||||
@@ -172,6 +173,8 @@ describe("player_sync plugin", function() {
|
||||
["quick_bar", { 1: { t: "i", n: "main" } }],
|
||||
["quick_bar", { 1: { t: "r", y: "blueprint" } }],
|
||||
["quick_bar", { 1: 5 }],
|
||||
["quick_bar_pages", [0]],
|
||||
["quick_bar_pages", [11]],
|
||||
["personal_logistic_slots", { enabled: true, sections: [] }],
|
||||
["personal_logistic_slots", { enabled: true, trash_not_requested: false, sections: [{}] }],
|
||||
["personal_logistic_slots", { 1: { min: 50 } }],
|
||||
|
||||
Reference in new issue
Block a user