Remove usages of obsolete MetaDataComponent setters (#19582)
This commit is contained in:
@@ -33,6 +33,7 @@ public sealed class MindSystem : EntitySystem
|
||||
[Dependency] private readonly TransformSystem _transform = default!;
|
||||
[Dependency] private readonly IAdminLogManager _adminLogger = default!;
|
||||
[Dependency] private readonly IPlayerManager _playerManager = default!;
|
||||
[Dependency] private readonly MetaDataSystem _metaData = default!;
|
||||
|
||||
// This is dictionary is required to track the minds of disconnected players that may have had their entity deleted.
|
||||
private readonly Dictionary<NetUserId, Mind> _userMinds = new();
|
||||
@@ -198,7 +199,7 @@ public sealed class MindSystem : EntitySystem
|
||||
Log.Debug($"Entity \"{ToPrettyString(uid)}\" for {mind.CharacterName} was deleted, spawned \"{ToPrettyString(ghost)}\".");
|
||||
|
||||
var val = mind.CharacterName ?? string.Empty;
|
||||
MetaData(ghost).EntityName = val;
|
||||
_metaData.SetEntityName(ghost, val);
|
||||
TransferTo(mind, ghost);
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user