Skip to content

Commit

Permalink
Update pressurization state on initialization
Browse files Browse the repository at this point in the history
  • Loading branch information
cheese3660 committed Dec 24, 2023
1 parent ada52ed commit 94819ac
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions src/WMCCModules/Modules/Module_Pressurization.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,8 @@ protected override void OnInitialize()
{
moduleIsEnabled = true;
}

if (PartBackingMode == PartBackingModes.OAB)
{
_dataPressurization.IsPressurized =
_dataPressurization.DefaultPressurizationState || GetIsPressurizationUnlocked();
}

_dataPressurization.IsPressurized =
_dataPressurization.DefaultPressurizationState || GetIsPressurizationUnlocked();
if (_dataPressurization.IsPressurized)
{
_dataPressurization.PressurizationState.SetValue("Yes");
Expand Down

0 comments on commit 94819ac

Please sign in to comment.