Storage CanInsert() tweaks (#21623)

This commit is contained in:
Leon Friedrich
2023-11-13 23:43:03 +11:00
committed by GitHub
parent dc5739a6c3
commit eb0c86f803
8 changed files with 142 additions and 162 deletions

View File

@@ -23,10 +23,10 @@ public sealed class StorageSystem : SharedStorageSystem
SubscribeNetworkEvent<AnimateInsertingEntitiesEvent>(HandleAnimatingInsertingEntities);
}
public override void UpdateUI(EntityUid uid, StorageComponent component)
public override void UpdateUI(Entity<StorageComponent?> entity)
{
// Should we wrap this in some prediction call maybe?
StorageUpdated?.Invoke(uid, component);
if (Resolve(entity.Owner, ref entity.Comp))
StorageUpdated?.Invoke(entity.Owner, entity.Comp);
}
/// <inheritdoc />