Skip to content

Commit 542731d

Browse files
committed
Rearange if statement
- Actually check if auto cutting drogues is enabled & rearange if statement to check the simple booleans first.
1 parent 66bc2c4 commit 542731d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Source/Modules/ModuleAutoCutDrogue.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ public void OnDestroy()
5151

5252
private void OnParachuteDeployed(ModuleParachute pChute)
5353
{
54-
if (pChute == chute && !triggered)
54+
if (autoCutDrogue && !triggered && pChute == chute)
5555
{
5656
if (lastFrame != Time.frameCount)
5757
{

0 commit comments

Comments
 (0)