Remove usages of obsolete MetaDataComponent setters (#19582)
This commit is contained in:
@@ -38,6 +38,7 @@ public sealed class FaxSystem : EntitySystem
|
||||
[Dependency] private readonly QuickDialogSystem _quickDialog = default!;
|
||||
[Dependency] private readonly UserInterfaceSystem _userInterface = default!;
|
||||
[Dependency] private readonly ISharedAdminLogManager _adminLogger = default!;
|
||||
[Dependency] private readonly MetaDataSystem _metaData = default!;
|
||||
|
||||
private const string PaperSlotId = "Paper";
|
||||
|
||||
@@ -469,9 +470,7 @@ public sealed class FaxSystem : EntitySystem
|
||||
}
|
||||
}
|
||||
|
||||
if (TryComp<MetaDataComponent>(printed, out var metadata))
|
||||
metadata.EntityName = printout.Name;
|
||||
|
||||
_metaData.SetEntityName(printed, printout.Name);
|
||||
_adminLogger.Add(LogType.Action, LogImpact.Low, $"\"{component.FaxName}\" {ToPrettyString(uid)} printed {ToPrettyString(printed)}: {printout.Content}");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user