From e9f358f56bd99fa96f49290410e62422b186b2f5 Mon Sep 17 00:00:00 2001 From: ShadowCommander <10494922+ShadowCommander@users.noreply.github.com> Date: Tue, 10 Aug 2021 15:39:24 -0700 Subject: [PATCH] Fix indentation --- .../Kitchen/Components/MicrowaveComponent.cs | 59 ++++++++++--------- 1 file changed, 30 insertions(+), 29 deletions(-) diff --git a/Content.Server/Kitchen/Components/MicrowaveComponent.cs b/Content.Server/Kitchen/Components/MicrowaveComponent.cs index a0786f7fe0..38ea0f9fe6 100644 --- a/Content.Server/Kitchen/Components/MicrowaveComponent.cs +++ b/Content.Server/Kitchen/Components/MicrowaveComponent.cs @@ -339,39 +339,40 @@ namespace Content.Server.Kitchen.Components SetAppearance(MicrowaveVisualState.Cooking); SoundSystem.Play(Filter.Pvs(Owner), _startCookingSound.GetSound(), Owner, AudioParams.Default); Owner.SpawnTimer((int) (_currentCookTimerTime * _cookTimeMultiplier), (Action) (() => - { - if (_lostPower) - { - return; - } + { + if (_lostPower) + { + return; + } - if (failState == MicrowaveSuccessState.UnwantedForeignObject) - { - VaporizeReagents(); - EjectSolids(); - } - else - { - if (recipeToCook != null) - { - SubtractContents(recipeToCook); - Owner.EntityManager.SpawnEntity(recipeToCook.Result, Owner.Transform.Coordinates); - } - else - { - VaporizeReagents(); - VaporizeSolids(); - Owner.EntityManager.SpawnEntity(_badRecipeName, Owner.Transform.Coordinates); - } - } + if (failState == MicrowaveSuccessState.UnwantedForeignObject) + { + VaporizeReagents(); + EjectSolids(); + } + else + { + if (recipeToCook != null) + { + SubtractContents(recipeToCook); + Owner.EntityManager.SpawnEntity(recipeToCook.Result, Owner.Transform.Coordinates); + } + else + { + VaporizeReagents(); + VaporizeSolids(); + Owner.EntityManager.SpawnEntity(_badRecipeName, Owner.Transform.Coordinates); + } + } - SoundSystem.Play(Filter.Pvs(Owner), _cookingCompleteSound.GetSound(), Owner, AudioParams.Default.WithVolume(-1f)); + SoundSystem.Play(Filter.Pvs(Owner), _cookingCompleteSound.GetSound(), Owner, + AudioParams.Default.WithVolume(-1f)); - SetAppearance(MicrowaveVisualState.Idle); - _busy = false; + SetAppearance(MicrowaveVisualState.Idle); + _busy = false; - _uiDirty = true; - })); + _uiDirty = true; + })); _lostPower = false; _uiDirty = true; }