Use provider UI handle for Unity commands

This commit is contained in:
Meta Vens 2026-06-29 06:46:38 +01:00
commit ae3c1f9ff2
5 changed files with 37 additions and 15 deletions

View file

@ -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();