machine upgrading rounding fix (#12577)
This commit is contained in:
@@ -76,8 +76,8 @@ public sealed partial class ConstructionSystem
|
||||
var output = new Dictionary<string, float>();
|
||||
foreach (var type in _prototypeManager.EnumeratePrototypes<MachinePartPrototype>())
|
||||
{
|
||||
var amount = 0;
|
||||
var sumRating = 0;
|
||||
var amount = 0f;
|
||||
var sumRating = 0f;
|
||||
foreach (var part in parts.Where(part => part.PartType == type.ID))
|
||||
{
|
||||
amount++;
|
||||
|
||||
Reference in New Issue
Block a user