Raise power events by ref and not broadcast (#11923)
Also some other minor stuff.
This commit is contained in:
@@ -319,7 +319,7 @@ namespace Content.Server.Disposal.Unit.EntitySystems
|
||||
RemComp<ActiveDisposalUnitComponent>(uid);
|
||||
}
|
||||
|
||||
private void HandlePowerChange(EntityUid uid, DisposalUnitComponent component, PowerChangedEvent args)
|
||||
private void HandlePowerChange(EntityUid uid, DisposalUnitComponent component, ref PowerChangedEvent args)
|
||||
{
|
||||
if (!component.Running)
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user