mirror of
https://github.com/space-syndicate/space-station-14.git
synced 2026-10-09 10:21:18 +03:00
machine upgrading rounding fix (#12577)
This commit is contained in:
parent
bb5d37b613
commit
b541cc5479
1 changed files with 2 additions and 2 deletions
|
|
@ -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++;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue