From b0530056f57185d00a690a0721b1c71400609353 Mon Sep 17 00:00:00 2001 From: cinder Date: Thu, 1 Dec 2022 21:30:34 -0600 Subject: [PATCH] Fix RequestUploadNotecardAsset() Thanks for the report Madpeterz --- LibreMetaverse/InventoryManager.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/LibreMetaverse/InventoryManager.cs b/LibreMetaverse/InventoryManager.cs index 2afc1146..7113422c 100644 --- a/LibreMetaverse/InventoryManager.cs +++ b/LibreMetaverse/InventoryManager.cs @@ -2160,11 +2160,11 @@ public void RequestUpdateItems(List items, UUID transactionID) public void RequestUploadNotecardAsset(byte[] data, UUID notecardID, InventoryUploadedAssetCallback callback) { if (Client.Network.CurrentSim == null || Client.Network.CurrentSim.Caps == null) - throw new Exception("UpdateNotecardAgentInventory capability is not currently available"); + throw new Exception("Capability system not initialized to send asset"); Uri cap = Client.Network.CurrentSim.Caps.CapabilityURI("UpdateNotecardAgentInventory"); - if (cap == null) + if (cap != null) { OSDMap query = new OSDMap { { "item_id", OSD.FromUUID(notecardID) } };