]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Fix notice board storage fill visuals (#24569)
authorthemias <89101928+themias@users.noreply.github.com>
Fri, 26 Jan 2024 01:03:01 +0000 (20:03 -0500)
committerGitHub <noreply@github.com>
Fri, 26 Jan 2024 01:03:01 +0000 (18:03 -0700)
Content.Server/Storage/EntitySystems/StorageFillVisualizerSystem.cs

index 01ed9a13dce454b40da4d30e515c4aa62fe10714..04894461edf07033a3b5b8ab4192d6b70ce7180b 100644 (file)
@@ -47,7 +47,7 @@ public sealed class StorageFillVisualizerSystem : EntitySystem
         if (!_appearance.TryGetData<int>(uid, StorageVisuals.Capacity, out var capacity, appearance))
             return;
 
-        var level = ContentHelpers.RoundToEqualLevels(used, capacity, component.MaxFillLevels);
+        var level = ContentHelpers.RoundToLevels(used, capacity, component.MaxFillLevels);
         _appearance.SetData(uid, StorageFillVisuals.FillLevel, level, appearance);
     }
 }