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:
@@ -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