Remove usages of obsolete MetaDataComponent setters (#19582)
This commit is contained in:
@@ -7,6 +7,7 @@ namespace Content.Server.Humanoid.Systems;
|
||||
public sealed class RandomHumanoidAppearanceSystem : EntitySystem
|
||||
{
|
||||
[Dependency] private readonly HumanoidAppearanceSystem _humanoid = default!;
|
||||
[Dependency] private readonly MetaDataSystem _metaData = default!;
|
||||
|
||||
public override void Initialize()
|
||||
{
|
||||
@@ -28,9 +29,6 @@ public sealed class RandomHumanoidAppearanceSystem : EntitySystem
|
||||
_humanoid.LoadProfile(uid, profile, humanoid);
|
||||
|
||||
if (component.RandomizeName)
|
||||
{
|
||||
var meta = MetaData(uid);
|
||||
meta.EntityName = profile.Name;
|
||||
}
|
||||
_metaData.SetEntityName(uid, profile.Name);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user