Skip to content

Fixes #439 With Backward Compatibility#458

Open
tvralph wants to merge 1 commit into
KSPModStewards:devfrom
tvralph:issue-439-MJ-fix-reflective
Open

Fixes #439 With Backward Compatibility#458
tvralph wants to merge 1 commit into
KSPModStewards:devfrom
tvralph:issue-439-MJ-fix-reflective

Conversation

@tvralph
Copy link
Copy Markdown

@tvralph tvralph commented May 22, 2026

PR #441 fixes #439 by changing 'target' -> 'Target' & 'hidden' -> 'Hidden' to support MJ 2.15 and later.

This is an alternative approach mentioned by @JonnyOThan in the #439 discussion that uses reflection to support both pre-2.15 and 2.15+ MechJeb. If neither name resolves, the failure logged.

The original 'target' -> 'Target' & 'hidden' -> 'Hidden' changes work on MJ 2.15 and later. Per the KSPModStewards#439 discussion, this resolves the renamed fields reflectively under either casing, so the integration works on both pre-2.15 and 2.15+ MechJeb. If neither name resolves, the failure logged.
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.

Incompatible with Mechjeb 2.15

1 participant