Clean up store system (#28463)
This commit is contained in:
@@ -1,7 +1,9 @@
|
||||
using System.Linq;
|
||||
using Content.Server.Store.Components;
|
||||
using Content.Shared.FixedPoint;
|
||||
using Content.Server.Administration;
|
||||
using Content.Shared.Administration;
|
||||
using Content.Shared.Store.Components;
|
||||
using Robust.Shared.Console;
|
||||
|
||||
namespace Content.Server.Store.Systems;
|
||||
@@ -58,7 +60,7 @@ public sealed partial class StoreSystem
|
||||
if (args.Length == 2 && NetEntity.TryParse(args[0], out var uidNet) && TryGetEntity(uidNet, out var uid))
|
||||
{
|
||||
if (TryComp<StoreComponent>(uid, out var store))
|
||||
return CompletionResult.FromHintOptions(store.CurrencyWhitelist, "<currency prototype>");
|
||||
return CompletionResult.FromHintOptions(store.CurrencyWhitelist.Select(p => p.ToString()), "<currency prototype>");
|
||||
}
|
||||
|
||||
return CompletionResult.Empty;
|
||||
|
||||
Reference in New Issue
Block a user