Fix tests (#15682)
This commit is contained in:
@@ -22,7 +22,7 @@ public sealed class ProximityBeeperSystem : EntitySystem
|
|||||||
public override void Initialize()
|
public override void Initialize()
|
||||||
{
|
{
|
||||||
SubscribeLocalEvent<ProximityBeeperComponent, UseInHandEvent>(OnUseInHand);
|
SubscribeLocalEvent<ProximityBeeperComponent, UseInHandEvent>(OnUseInHand);
|
||||||
SubscribeLocalEvent<ProximityBeeperComponent, ComponentInit>(OnInit);
|
SubscribeLocalEvent<ProximityBeeperComponent, MapInitEvent>(OnInit);
|
||||||
SubscribeLocalEvent<ProximityBeeperComponent, EntityUnpausedEvent>(OnUnpaused);
|
SubscribeLocalEvent<ProximityBeeperComponent, EntityUnpausedEvent>(OnUnpaused);
|
||||||
SubscribeLocalEvent<ProximityBeeperComponent, PowerCellSlotEmptyEvent>(OnPowerCellSlotEmpty);
|
SubscribeLocalEvent<ProximityBeeperComponent, PowerCellSlotEmptyEvent>(OnPowerCellSlotEmpty);
|
||||||
}
|
}
|
||||||
@@ -34,7 +34,7 @@ public sealed class ProximityBeeperSystem : EntitySystem
|
|||||||
args.Handled = TryToggle(uid, component, args.User);
|
args.Handled = TryToggle(uid, component, args.User);
|
||||||
}
|
}
|
||||||
|
|
||||||
private void OnInit(EntityUid uid, ProximityBeeperComponent component, ComponentInit args)
|
private void OnInit(EntityUid uid, ProximityBeeperComponent component, MapInitEvent args)
|
||||||
{
|
{
|
||||||
if (component.NextBeepTime < _timing.CurTime)
|
if (component.NextBeepTime < _timing.CurTime)
|
||||||
component.NextBeepTime = _timing.CurTime;
|
component.NextBeepTime = _timing.CurTime;
|
||||||
|
|||||||
Reference in New Issue
Block a user