Content fixes for timeoffsets (#15934)
This commit is contained in:
@@ -42,7 +42,6 @@ public sealed class PowerCellSystem : SharedPowerCellSystem
|
||||
|
||||
SubscribeLocalEvent<PowerCellComponent, ExaminedEvent>(OnCellExamined);
|
||||
|
||||
SubscribeLocalEvent<PowerCellDrawComponent, MapInitEvent>(OnMapInit);
|
||||
SubscribeLocalEvent<PowerCellDrawComponent, EntityUnpausedEvent>(OnUnpaused);
|
||||
|
||||
// funny
|
||||
@@ -136,12 +135,6 @@ public sealed class PowerCellSystem : SharedPowerCellSystem
|
||||
RaiseLocalEvent(uid, ref ev);
|
||||
}
|
||||
|
||||
private void OnMapInit(EntityUid uid, PowerCellDrawComponent component, MapInitEvent args)
|
||||
{
|
||||
if (component.NextUpdateTime < _timing.CurTime)
|
||||
component.NextUpdateTime = _timing.CurTime;
|
||||
}
|
||||
|
||||
private void OnUnpaused(EntityUid uid, PowerCellDrawComponent component, ref EntityUnpausedEvent args)
|
||||
{
|
||||
component.NextUpdateTime += args.PausedTime;
|
||||
|
||||
Reference in New Issue
Block a user