mirror of
https://github.com/DeltaV-Station/Delta-v.git
synced 2026-09-29 23:57:29 +00:00
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
(cherry picked from commit 4a83c36585)
This commit is contained in:
@@ -24,7 +24,7 @@ public abstract partial class SharedGravitySystem
|
||||
ShakeGrid(uid, gravity);
|
||||
comp.ShakeTimes--;
|
||||
comp.NextShake += TimeSpan.FromSeconds(ShakeCooldown);
|
||||
Dirty(comp);
|
||||
Dirty(uid, comp);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -44,7 +44,7 @@ public abstract partial class SharedGravitySystem
|
||||
}
|
||||
|
||||
shake.ShakeTimes = 10;
|
||||
Dirty(shake);
|
||||
Dirty(uid, shake);
|
||||
}
|
||||
|
||||
protected virtual void ShakeGrid(EntityUid uid, GravityComponent? comp = null) {}
|
||||
|
||||
Reference in New Issue
Block a user