Very small Shared Storage Optimization (#39092)

Mildly cheesed

Co-authored-by: Princess Cheeseballs <66055347+Pronana@users.noreply.github.com>
This commit is contained in:
Princess Cheeseballs
2025-10-10 17:21:05 -07:00
committed by GitHub
parent 1b1704af0b
commit bed5e8fd7a

View File

@@ -587,7 +587,7 @@ public abstract class SharedStorageSystem : EntitySystem
} }
_entList.Add(entity); _entList.Add(entity);
delay += itemSize.Weight * AreaInsertDelayPerItem; delay += itemSize.Weight;
if (_entList.Count >= StorageComponent.AreaPickupLimit) if (_entList.Count >= StorageComponent.AreaPickupLimit)
break; break;
@@ -596,7 +596,7 @@ public abstract class SharedStorageSystem : EntitySystem
//If there's only one then let's be generous //If there's only one then let's be generous
if (_entList.Count >= 1) 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, BreakOnDamage = true,
BreakOnMove = true, BreakOnMove = true,