mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-16 07:24:53 +09:00
Restore each imported appearance field on its own
An import with color but no chat_color or tag assigned nil to the missing LuaPlayer properties and failed restoration. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
41dc294542
commit
feb3253bec
2 files changed
+6
-4
No files matched your search
@@ -105,6 +105,7 @@ describe("player_sync plugin", function() {
|
||||
assert(accepts({ name: "player", generation: 0 }));
|
||||
assert(accepts(playerData("player", 0, { controller: "ghost", ticks_to_respawn: 300 })));
|
||||
assert(accepts(playerData("player", 0, { color: [1, 0, 0] })));
|
||||
assert(accepts(playerData("player", 0, { chat_color: [1, 0, 0], tag: "tag" })));
|
||||
assert(accepts(playerData("player", 0, {
|
||||
crafting_queue: { crafting_queue: {}, crafting_queue_progress: 0, ingredients: {} },
|
||||
personal_logistic_slots: { 1: { name: "iron-plate", min: 50 } },
|
||||
|
||||
Reference in new issue
Block a user