Skip to content

Conversation

@giang6996
Copy link

@giang6996 giang6996 commented Jan 21, 2026

Fix issue #2069 where MJ auto-unlocked all features in Career game mode.

The configuration files define per-module requirements using the keys unlockTechs / unlockParts (camelCase) inside MechJebLocalSettings blocks on the MechJebCore part.

But ComputerModule fields were defined as UnlockTechs / UnlockParts (PascalCase) and populated via
ConfigNode. LoadObjectFromConfig(...)

Both field and its application has been fix to the latter.


// Debug start

Debug.Log($"[MechJeb2] UnlockCheck {GetType().Name}: unlock={unlock}, " +
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you've at least got one stray Debug.Log left in here, and this PR would be better without all the whitespace changes.

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.

2 participants