Skip to content

Commit

Permalink
Fix deep fryer divide by zero (#886)
Browse files Browse the repository at this point in the history
Update DeepFryerSystem.cs
  • Loading branch information
VMSolidus authored Feb 22, 2024
1 parent b9dd5ed commit 0f9414b
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,7 @@ public FixedPoint2 GetWasteVolume(EntityUid uid, DeepFryerComponent component)
/// </summary>
public FixedPoint2 GetOilPurity(EntityUid uid, DeepFryerComponent component)
{
if (component.Solution.Volume == 0) return 0;
return GetOilVolume(uid, component) / component.Solution.Volume;
}

Expand Down

0 comments on commit 0f9414b

Please sign in to comment.