Raise powercellemptyevent on cell removed, fix powercelldraw (#15679)

This commit is contained in:
Nemanja
2023-04-23 01:27:56 -04:00
committed by GitHub
parent a381031909
commit ef28cfd55f
2 changed files with 22 additions and 3 deletions

View File

@@ -52,7 +52,7 @@ public abstract class SharedPowerCellSystem : EntitySystem
RaiseLocalEvent(uid, new PowerCellChangedEvent(false), false);
}
private void OnCellRemoved(EntityUid uid, PowerCellSlotComponent component, EntRemovedFromContainerMessage args)
protected virtual void OnCellRemoved(EntityUid uid, PowerCellSlotComponent component, EntRemovedFromContainerMessage args)
{
if (args.Container.ID != component.CellSlotId)
return;