mirror of
https://github.com/opensim/opensim.git
synced 2026-08-10 11:33:28 +08:00
Add the option to have variable costing for uploads
This commit is contained in:
@@ -101,12 +101,12 @@ namespace OpenSim.Region.Framework.Scenes
|
||||
engine.StartProcessing();
|
||||
}
|
||||
|
||||
public void AddUploadedInventoryItem(UUID agentID, InventoryItemBase item)
|
||||
public void AddUploadedInventoryItem(UUID agentID, InventoryItemBase item, uint cost)
|
||||
{
|
||||
IMoneyModule money = RequestModuleInterface<IMoneyModule>();
|
||||
if (money != null)
|
||||
{
|
||||
money.ApplyUploadCharge(agentID, money.UploadCharge, "Asset upload");
|
||||
money.ApplyUploadCharge(agentID, (int)cost, "Asset upload");
|
||||
}
|
||||
|
||||
AddInventoryItem(item);
|
||||
|
||||
Reference in New Issue
Block a user