Fix puddle spilling properly (#4812)
This commit is contained in:
@@ -50,9 +50,12 @@ namespace Content.Shared.Chemistry.EntitySystems
|
||||
foreach (var keyValue in component.Solutions)
|
||||
{
|
||||
var solutionHolder = keyValue.Value;
|
||||
solutionHolder.MaxVolume = solutionHolder.TotalVolume > solutionHolder.InitialMaxVolume
|
||||
? solutionHolder.TotalVolume
|
||||
: solutionHolder.InitialMaxVolume;
|
||||
if (solutionHolder.MaxVolume == ReagentUnit.Zero)
|
||||
{
|
||||
solutionHolder.MaxVolume = solutionHolder.TotalVolume > solutionHolder.InitialMaxVolume
|
||||
? solutionHolder.TotalVolume
|
||||
: solutionHolder.InitialMaxVolume;
|
||||
}
|
||||
|
||||
UpdateAppearance(uid, solutionHolder);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user