Remove usages of obsolete MetaDataComponent setters (#19582)
This commit is contained in:
@@ -23,6 +23,7 @@ namespace Content.Server.Light.EntitySystems
|
||||
[Dependency] private readonly TagSystem _tagSystem = default!;
|
||||
[Dependency] private readonly SharedAudioSystem _audio = default!;
|
||||
[Dependency] private readonly SharedAppearanceSystem _appearance = default!;
|
||||
[Dependency] private readonly MetaDataSystem _metaData = default!;
|
||||
|
||||
public override void Initialize()
|
||||
{
|
||||
@@ -63,8 +64,8 @@ namespace Content.Server.Light.EntitySystems
|
||||
case ExpendableLightState.Fading:
|
||||
component.CurrentState = ExpendableLightState.Dead;
|
||||
var meta = MetaData(component.Owner);
|
||||
meta.EntityName = Loc.GetString(component.SpentName);
|
||||
meta.EntityDescription = Loc.GetString(component.SpentDesc);
|
||||
_metaData.SetEntityName(component.Owner, Loc.GetString(component.SpentName), meta);
|
||||
_metaData.SetEntityDescription(component.Owner, Loc.GetString(component.SpentDesc), meta);
|
||||
|
||||
_tagSystem.AddTag(component.Owner, "Trash");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user