mirror of
https://github.com/space-wizards/RobustToolbox.git
synced 2026-09-15 06:42:25 +02:00
Fix warning in ScriptGlobalsShared.cs
This commit is contained in:
@@ -206,8 +206,11 @@ namespace Robust.Shared.Scripting
|
||||
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;
|
||||
|
||||
Reference in New Issue
Block a user