Minor paper ECS and stamps (#7394)
Co-authored-by: fishfish458 <fishfish458>
This commit is contained in:
@@ -12,6 +12,7 @@ namespace Content.Server.Cargo;
|
||||
|
||||
public sealed partial class CargoSystem
|
||||
{
|
||||
[Dependency] private readonly PaperSystem _paperSystem = default!;
|
||||
private void InitializeTelepad()
|
||||
{
|
||||
SubscribeLocalEvent<CargoTelepadComponent, PowerChangedEvent>(OnTelepadPowerChange);
|
||||
@@ -114,12 +115,13 @@ public sealed partial class CargoSystem
|
||||
|
||||
MetaData(printed).EntityName = val;
|
||||
|
||||
paper.SetContent(Loc.GetString(
|
||||
_paperSystem.SetContent(printed, Loc.GetString(
|
||||
"cargo-console-paper-print-text",
|
||||
("orderNumber", data.OrderNumber),
|
||||
("requester", data.Requester),
|
||||
("reason", data.Reason),
|
||||
("approver", data.Approver)));
|
||||
("approver", data.Approver)),
|
||||
paper);
|
||||
|
||||
// attempt to attach the label
|
||||
if (TryComp<PaperLabelComponent>(product, out var label))
|
||||
|
||||
Reference in New Issue
Block a user