Fix indentation

This commit is contained in:
ShadowCommander
2021-08-10 15:39:24 -07:00
parent 730c137778
commit e9f358f56b

View File

@@ -339,39 +339,40 @@ namespace Content.Server.Kitchen.Components
SetAppearance(MicrowaveVisualState.Cooking); SetAppearance(MicrowaveVisualState.Cooking);
SoundSystem.Play(Filter.Pvs(Owner), _startCookingSound.GetSound(), Owner, AudioParams.Default); SoundSystem.Play(Filter.Pvs(Owner), _startCookingSound.GetSound(), Owner, AudioParams.Default);
Owner.SpawnTimer((int) (_currentCookTimerTime * _cookTimeMultiplier), (Action) (() => Owner.SpawnTimer((int) (_currentCookTimerTime * _cookTimeMultiplier), (Action) (() =>
{ {
if (_lostPower) if (_lostPower)
{ {
return; return;
} }
if (failState == MicrowaveSuccessState.UnwantedForeignObject) if (failState == MicrowaveSuccessState.UnwantedForeignObject)
{ {
VaporizeReagents(); VaporizeReagents();
EjectSolids(); EjectSolids();
} }
else else
{ {
if (recipeToCook != null) if (recipeToCook != null)
{ {
SubtractContents(recipeToCook); SubtractContents(recipeToCook);
Owner.EntityManager.SpawnEntity(recipeToCook.Result, Owner.Transform.Coordinates); Owner.EntityManager.SpawnEntity(recipeToCook.Result, Owner.Transform.Coordinates);
} }
else else
{ {
VaporizeReagents(); VaporizeReagents();
VaporizeSolids(); VaporizeSolids();
Owner.EntityManager.SpawnEntity(_badRecipeName, Owner.Transform.Coordinates); 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); SetAppearance(MicrowaveVisualState.Idle);
_busy = false; _busy = false;
_uiDirty = true; _uiDirty = true;
})); }));
_lostPower = false; _lostPower = false;
_uiDirty = true; _uiDirty = true;
} }