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:
@@ -340,7 +340,7 @@ public sealed class DisposalUnitSystem : SharedDisposalUnitSystem
|
||||
if (!args.Powered)
|
||||
{
|
||||
component.NextFlush = null;
|
||||
Dirty(component);
|
||||
Dirty(uid, component);
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -396,7 +396,7 @@ public sealed class DisposalUnitSystem : SharedDisposalUnitSystem
|
||||
component.State = state;
|
||||
UpdateVisualState(uid, component);
|
||||
UpdateInterface(uid, component, component.Powered);
|
||||
Dirty(component, metadata);
|
||||
Dirty(uid, component, metadata);
|
||||
|
||||
if (state == DisposalsPressureState.Ready)
|
||||
{
|
||||
@@ -477,7 +477,7 @@ public sealed class DisposalUnitSystem : SharedDisposalUnitSystem
|
||||
}
|
||||
|
||||
if (count != component.RecentlyEjected.Count)
|
||||
Dirty(component, metadata);
|
||||
Dirty(uid, component, metadata);
|
||||
}
|
||||
|
||||
public bool TryInsert(EntityUid unitId, EntityUid toInsertId, EntityUid? userId, DisposalUnitComponent? unit = null)
|
||||
@@ -783,7 +783,7 @@ public sealed class DisposalUnitSystem : SharedDisposalUnitSystem
|
||||
var flushTime = TimeSpan.FromSeconds(Math.Min((component.NextFlush ?? TimeSpan.MaxValue).TotalSeconds, automaticTime.TotalSeconds));
|
||||
|
||||
component.NextFlush = flushTime;
|
||||
Dirty(component);
|
||||
Dirty(uid, component);
|
||||
}
|
||||
|
||||
public void AfterInsert(EntityUid uid, SharedDisposalUnitComponent component, EntityUid inserted, EntityUid? user = null, bool doInsert = false)
|
||||
|
||||
Reference in New Issue
Block a user