aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--OpenSim/Region/Environment/Scenes/SceneObjectPart.cs22
1 files changed, 20 insertions, 2 deletions
diff --git a/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs b/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs
index 8a59d88..567681a 100644
--- a/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs
+++ b/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs
@@ -422,10 +422,28 @@ namespace OpenSim.Region.Environment.Scenes
422 this.m_inventorySerial++; 422 this.m_inventorySerial++;
423 } 423 }
424 424
425 public void RemoveInventoryItem() 425 public int RemoveInventoryItem(IClientAPI remoteClient, uint localID, LLUUID itemID)
426 { 426 {
427 427 if (localID == this.LocalID)
428 {
429 if (this.TaskInventory.ContainsKey(itemID))
430 {
431 string type = TaskInventory[itemID].inv_type;
432 this.TaskInventory.Remove(itemID);
433 this.m_inventorySerial++;
434 if (type == "lsltext")
435 {
436 return 10;
437 }
438 else
439 {
440 return 0;
441 }
442 }
443 }
444 return -1;
428 } 445 }
446
429 /// <summary> 447 /// <summary>
430 /// 448 ///
431 /// </summary> 449 /// </summary>