Raise power events by ref and not broadcast (#11923)
Also some other minor stuff.
This commit is contained in:
@@ -47,7 +47,7 @@ internal sealed class ChargerSystem : EntitySystem
|
||||
_itemSlotsSystem.RemoveItemSlot(uid, component.ChargerSlot);
|
||||
}
|
||||
|
||||
private void OnPowerChanged(EntityUid uid, ChargerComponent component, PowerChangedEvent args)
|
||||
private void OnPowerChanged(EntityUid uid, ChargerComponent component, ref PowerChangedEvent args)
|
||||
{
|
||||
component.UpdateStatus();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user