Skip to content

Commit

Permalink
Fix warning in ScriptGlobalsShared.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
PJB3005 committed Sep 4, 2024
1 parent f3dfa1f commit 2f73f61
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Robust.Shared.Scripting/ScriptGlobalsShared.cs
Original file line number Diff line number Diff line change
Expand Up @@ -206,8 +206,11 @@ public void Del(EntityUid uid)
public void Dirty(EntityUid uid)
=> ent.DirtyEntity(uid);

#pragma warning disable CS0618 // Type or member is obsolete
// Remove this helper when component.Owner finally gets removed.
public void Dirty(Component comp)
=> ent.Dirty(comp.Owner, comp);
#pragma warning restore CS0618 // Type or member is obsolete

public string Name(EntityUid uid)
=> ent.GetComponent<MetaDataComponent>(uid).EntityName;
Expand Down

0 comments on commit 2f73f61

Please sign in to comment.