Code cleanup: Dirty(Comp) (#26238)
* Replaced uses of Dirty(Component) with Dirty(Uid, Component) Modified some systems (notably pulling-related) to use uids. * Missed a few * Revert changes to pulling * No
This commit is contained in:
@@ -135,7 +135,7 @@ public sealed class BinSystem : EntitySystem
|
||||
|
||||
_container.Insert(toInsert, component.ItemContainer);
|
||||
component.Items.Add(toInsert);
|
||||
Dirty(component);
|
||||
Dirty(uid, component);
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -151,7 +151,7 @@ public sealed class BinSystem : EntitySystem
|
||||
if (!Resolve(uid, ref component))
|
||||
return false;
|
||||
|
||||
if (!component.Items.Any())
|
||||
if (component.Items.Count == 0)
|
||||
return false;
|
||||
|
||||
if (toRemove == null || toRemove != component.Items.LastOrDefault())
|
||||
@@ -161,7 +161,7 @@ public sealed class BinSystem : EntitySystem
|
||||
return false;
|
||||
|
||||
component.Items.Remove(toRemove.Value);
|
||||
Dirty(component);
|
||||
Dirty(uid, component);
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user