From f403e79520738f3c073cded01ac3eefee94fbca7 Mon Sep 17 00:00:00 2001 From: Clyybber Date: Sat, 20 Feb 2021 12:50:24 +0100 Subject: [PATCH] Fix foam crash (#3336) --- Content.Server/Chemistry/ReactionEffects/AreaReactionEffect.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Content.Server/Chemistry/ReactionEffects/AreaReactionEffect.cs b/Content.Server/Chemistry/ReactionEffects/AreaReactionEffect.cs index 3744faf564..275c5dd2db 100644 --- a/Content.Server/Chemistry/ReactionEffects/AreaReactionEffect.cs +++ b/Content.Server/Chemistry/ReactionEffects/AreaReactionEffect.cs @@ -129,7 +129,7 @@ namespace Content.Server.Chemistry.ReactionEffects solutionFraction = amount * (1 - _reagentMaxConcentrationFactor) / _reagentDilutionStart + _reagentMaxConcentrationFactor; } - solution.RemoveSolution(solution.TotalVolume*(1-solutionFraction)); + solution.RemoveSolution(solution.TotalVolume * solutionFraction); } if (!_mapManager.TryFindGridAt(solutionEntity.Transform.MapPosition, out var grid)) return;