Fixed biomasser dividing by zero (#6042)
Fixed biomasser dividing by 0.
This commit is contained in:
parent
1656a91c5e
commit
d88938887b
|
|
@ -211,7 +211,7 @@ namespace Content.Server.Medical.BiomassReclaimer
|
|||
_solution.ResolveSolution(toProcess, stream.BloodSolutionName, ref stream.BloodSolution, out var solution))
|
||||
{
|
||||
component.BloodReagents = solution.Clone();
|
||||
component.BloodReagents.ScaleSolution(50 / component.BloodReagents.Volume);
|
||||
//component.BloodReagents.ScaleSolution(50 / component.BloodReagents.Volume); // Delta V - This doesn't need to be here. It just always makes the solution ~50u but also might divide by 0. Just use the current blood level so more blood = more mess.
|
||||
}
|
||||
if (TryComp<ButcherableComponent>(toProcess, out var butcherableComponent))
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue