Clean up all missing EntitySystem proxy method uses (#38353)
This commit is contained in:
@@ -69,7 +69,7 @@ namespace Content.Server.Forensics
|
||||
if (args.Handled || args.Cancelled)
|
||||
return;
|
||||
|
||||
if (!EntityManager.TryGetComponent(uid, out ForensicScannerComponent? scanner))
|
||||
if (!TryComp(uid, out ForensicScannerComponent? scanner))
|
||||
return;
|
||||
|
||||
if (args.Args.Target != null)
|
||||
@@ -196,7 +196,7 @@ namespace Content.Server.Forensics
|
||||
}
|
||||
|
||||
// Spawn a piece of paper.
|
||||
var printed = EntityManager.SpawnEntity(component.MachineOutput, Transform(uid).Coordinates);
|
||||
var printed = Spawn(component.MachineOutput, Transform(uid).Coordinates);
|
||||
_handsSystem.PickupOrDrop(args.Actor, printed, checkActionBlocker: false);
|
||||
|
||||
if (!TryComp<PaperComponent>(printed, out var paperComp))
|
||||
|
||||
Reference in New Issue
Block a user