Fix mark verb

This commit is contained in:
ElectroJr
2025-01-03 18:45:02 +13:00
parent 48c13b32f4
commit e5468982f5
2 changed files with 3 additions and 4 deletions

View File

@@ -9,8 +9,7 @@ public sealed class MarkedCommand : ToolshedCommand
[CommandImplementation]
public IEnumerable<EntityUid> Marked(IInvocationContext ctx)
{
var res = (IEnumerable<EntityUid>?)ctx.ReadVar("marked");
res ??= Array.Empty<EntityUid>();
return res;
var marked = ctx.ReadVar("marked") as IEnumerable<EntityUid>;
return marked ?? Array.Empty<EntityUid>();
}
}