From b541cc5479bbb9fb2fc114b60af9fa8c05f06ed1 Mon Sep 17 00:00:00 2001 From: Nemanja <98561806+EmoGarbage404@users.noreply.github.com> Date: Sun, 13 Nov 2022 15:42:35 -0800 Subject: [PATCH] machine upgrading rounding fix (#12577) --- Content.Server/Construction/ConstructionSystem.Machine.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Content.Server/Construction/ConstructionSystem.Machine.cs b/Content.Server/Construction/ConstructionSystem.Machine.cs index 17b61c6d1e..5cb0be6927 100644 --- a/Content.Server/Construction/ConstructionSystem.Machine.cs +++ b/Content.Server/Construction/ConstructionSystem.Machine.cs @@ -76,8 +76,8 @@ public sealed partial class ConstructionSystem var output = new Dictionary(); foreach (var type in _prototypeManager.EnumeratePrototypes()) { - var amount = 0; - var sumRating = 0; + var amount = 0f; + var sumRating = 0f; foreach (var part in parts.Where(part => part.PartType == type.ID)) { amount++;