Use provider UI handle for Unity commands
This commit is contained in:
parent
d3d67ecb56
commit
ae3c1f9ff2
5 changed files with 37 additions and 15 deletions
|
|
@ -1079,13 +1079,13 @@ private void Update()
|
|||
|
||||
try
|
||||
{
|
||||
var client = AetheriaUnityRuntimeClientProvider.RuntimeClient("unity-inventory");
|
||||
var loadout = CreateLoadoutTemplate(targetEntityKey);
|
||||
if (loadout?.RootEntity == null || string.IsNullOrWhiteSpace(loadout.RootEntity.Hull?.ItemKey ?? ""))
|
||||
return;
|
||||
|
||||
var submitted = client
|
||||
.Ui.SaveLoadoutTemplateAsync(loadout, "unity-inventory")
|
||||
var submitted = AetheriaUnityRuntimeClientProvider
|
||||
.Ui("unity-inventory")
|
||||
.SaveLoadoutTemplateAsync(loadout, "unity-inventory")
|
||||
.GetAwaiter()
|
||||
.GetResult();
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue