Skip to content

Commit

Permalink
Fix #205: don't apply the ModuleAnimateGeneric CrewCapacity patch in …
Browse files Browse the repository at this point in the history
…the editor so we don't spawn IVAs there
  • Loading branch information
JonnyOThan committed Feb 24, 2024
1 parent 0b5337c commit e7cd641
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ static IEnumerable<CodeInstruction> ModuleAnimateGeneric_CheckCrewState_Transpil

static void OnCrewCapacityChanged(Part part, int newCrewCapacity)
{
if (!HighLogic.LoadedSceneIsFlight) return;

if (newCrewCapacity > 0)
part.SpawnIVA();
else
Expand Down

0 comments on commit e7cd641

Please sign in to comment.