Skip to content

Fix <delete> desync: mods can only delete one type per spec section#165

Open
KevinGriffin-new wants to merge 1 commit into
FreeCol:sf-auto-mergefrom
KevinGriffin-new:fix-spec-delete-desync
Open

Fix <delete> desync: mods can only delete one type per spec section#165
KevinGriffin-new wants to merge 1 commit into
FreeCol:sf-auto-mergefrom
KevinGriffin-new:fix-spec-delete-desync

Conversation

@KevinGriffin-new

Copy link
Copy Markdown

TypeReader's DELETE_TAG branch doesn't consume the end tag, so the reader desyncs after the first and everything after it in that section is dropped. You only find out via "No reader found for:" warnings in the log, if you look. Added the missing closeTag call.

The DELETE_TAG branch never called xr.closeTag, desyncing the reader so
that every element after the first <delete> in a mod specification
section was silently dropped (surfacing only as top-level 'No reader
found for:' warnings). Mods deleting multiple types now work.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant