Content update for NetEntities (#18935)
This commit is contained in:
@@ -26,13 +26,13 @@ public sealed partial class AnomalySystem
|
||||
if (args.Length != 1)
|
||||
shell.WriteError("Argument length must be 1");
|
||||
|
||||
if (!EntityUid.TryParse(args[0], out var uid))
|
||||
if (!NetEntity.TryParse(args[0], out var uidNet) || !TryGetEntity(uidNet, out var uid))
|
||||
return;
|
||||
|
||||
if (!TryComp<AnomalyComponent>(uid, out var anomaly))
|
||||
return;
|
||||
|
||||
DoAnomalyPulse(uid, anomaly);
|
||||
DoAnomalyPulse(uid.Value, anomaly);
|
||||
}
|
||||
|
||||
[AdminCommand(AdminFlags.Fun)]
|
||||
@@ -41,13 +41,13 @@ public sealed partial class AnomalySystem
|
||||
if (args.Length != 1)
|
||||
shell.WriteError("Argument length must be 1");
|
||||
|
||||
if (!EntityUid.TryParse(args[0], out var uid))
|
||||
if (!NetEntity.TryParse(args[0], out var uidNet) || !TryGetEntity(uidNet, out var uid))
|
||||
return;
|
||||
|
||||
if (!HasComp<AnomalyComponent>(uid))
|
||||
return;
|
||||
|
||||
StartSupercriticalEvent(uid);
|
||||
StartSupercriticalEvent(uid.Value);
|
||||
}
|
||||
|
||||
private CompletionResult GetAnomalyCompletion(IConsoleShell shell, string[] args)
|
||||
|
||||
@@ -79,7 +79,7 @@ public sealed partial class AnomalySystem
|
||||
if (!HasComp<AnomalyComponent>(target))
|
||||
return;
|
||||
|
||||
_doAfter.TryStartDoAfter(new DoAfterArgs(args.User, component.ScanDoAfterDuration, new ScannerDoAfterEvent(), uid, target: target, used: uid)
|
||||
_doAfter.TryStartDoAfter(new DoAfterArgs(EntityManager, args.User, component.ScanDoAfterDuration, new ScannerDoAfterEvent(), uid, target: target, used: uid)
|
||||
{
|
||||
DistanceThreshold = 2f
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user