Skip to content

Fix ArgumentOutOfRangeException when adding subassemblies#37

Open
liujisi wants to merge 1 commit into
KSPModStewards:devfrom
liujisi:dev
Open

Fix ArgumentOutOfRangeException when adding subassemblies#37
liujisi wants to merge 1 commit into
KSPModStewards:devfrom
liujisi:dev

Conversation

@liujisi

@liujisi liujisi commented Jun 18, 2026

Copy link
Copy Markdown

I didn't dig into it, but it probably because subassemblies do not have filters. The exception breaks the Harmony patch chain, which in turn halts the main KSP.UI.Screens.EditorPartList.Refresh() method. The UI stops updating entirely.

The patch added a simple null check to stop refresh.

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