Skip to content

Commit

Permalink
Fix RequestUploadNotecardAsset() Thanks for the report Madpeterz
Browse files Browse the repository at this point in the history
  • Loading branch information
cinderblocks committed Dec 2, 2022
1 parent 7a14fdd commit b053005
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions LibreMetaverse/InventoryManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2160,11 +2160,11 @@ public void RequestUpdateItems(List<InventoryItem> 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) } };

Expand Down

0 comments on commit b053005

Please sign in to comment.