Add metadata flags to actions component (#6922)

This commit is contained in:
Leon Friedrich
2022-02-28 14:21:44 +13:00
committed by GitHub
parent 9a54ea67c4
commit 587de74ac3
2 changed files with 22 additions and 2 deletions

View File

@@ -44,8 +44,8 @@ namespace Content.Server.Flash
private void OnMetaFlagRemoval(EntityUid uid, FlashableComponent component, ref MetaFlagRemoveAttemptEvent args)
{
if (component.LifeStage > ComponentLifeStage.Initialized) return;
args.Cancelled = true;
if (component.LifeStage == ComponentLifeStage.Running)
args.Cancelled = true;
}
private void OnFlashableStartup(EntityUid uid, FlashableComponent component, ComponentStartup args)