From: Princess Cheeseballs <66055347+Princess-Cheeseballs@users.noreply.github.com> Date: Sat, 11 Oct 2025 00:21:05 +0000 (-0700) Subject: Very small Shared Storage Optimization (#39092) X-Git-Url: https://git.smokeofanarchy.ru/gitweb.cgi?a=commitdiff_plain;h=bed5e8fd7a675697b10c9d22d65f9fd5d331e946;p=space-station-14.git Very small Shared Storage Optimization (#39092) Mildly cheesed Co-authored-by: Princess Cheeseballs <66055347+Pronana@users.noreply.github.com> --- diff --git a/Content.Shared/Storage/EntitySystems/SharedStorageSystem.cs b/Content.Shared/Storage/EntitySystems/SharedStorageSystem.cs index e4f0aa8b23..fcda7eb0ac 100644 --- a/Content.Shared/Storage/EntitySystems/SharedStorageSystem.cs +++ b/Content.Shared/Storage/EntitySystems/SharedStorageSystem.cs @@ -587,7 +587,7 @@ public abstract class SharedStorageSystem : EntitySystem } _entList.Add(entity); - delay += itemSize.Weight * AreaInsertDelayPerItem; + delay += itemSize.Weight; if (_entList.Count >= StorageComponent.AreaPickupLimit) break; @@ -596,7 +596,7 @@ public abstract class SharedStorageSystem : EntitySystem //If there's only one then let's be generous if (_entList.Count >= 1) { - var doAfterArgs = new DoAfterArgs(EntityManager, args.User, delay, new AreaPickupDoAfterEvent(GetNetEntityList(_entList)), uid, target: uid) + var doAfterArgs = new DoAfterArgs(EntityManager, args.User, delay * AreaInsertDelayPerItem, new AreaPickupDoAfterEvent(GetNetEntityList(_entList)), uid, target: uid) { BreakOnDamage = true, BreakOnMove = true,