Skip to content

Commit 5c13b8f

Browse files
kt3kclaude
andcommitted
fix: keep config near the top of saved map json
toMap() emitted config last, so saving a map whose config sat near the top (e.g. right after the catalogs) moved it to the end. Place config right after catalogs in the serialized object so its position stays stable. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent f430d9f commit 5c13b8f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

model/field-block.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -705,11 +705,11 @@ export class FieldBlock {
705705
i: this.#i,
706706
j: this.#j,
707707
catalogs: this.#map.catalog.refs,
708+
config: this.config,
708709
actors: this.actorSpawns.toJSON(),
709710
items: this.itemSpawns.toJSON(),
710711
props: this.propSpawns.toJSON(),
711712
field: this.field,
712-
config: this.config,
713713
}, this.#map.catalog)
714714
}
715715

0 commit comments

Comments
 (0)