diff options
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs index e5c59aa..fbae9c8 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs | |||
@@ -1341,7 +1341,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api | |||
1341 | + textLength.ToString() + "\n" + notecardData + "}\n"; | 1341 | + textLength.ToString() + "\n" + notecardData + "}\n"; |
1342 | 1342 | ||
1343 | asset.Data = Encoding.ASCII.GetBytes(notecardData); | 1343 | asset.Data = Encoding.ASCII.GetBytes(notecardData); |
1344 | World.CommsManager.AssetCache.AddAsset(asset); | 1344 | World.AssetService.Store(asset); |
1345 | 1345 | ||
1346 | // Create Task Entry | 1346 | // Create Task Entry |
1347 | TaskInventoryItem taskItem=new TaskInventoryItem(); | 1347 | TaskInventoryItem taskItem=new TaskInventoryItem(); |
@@ -1402,7 +1402,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api | |||
1402 | 1402 | ||
1403 | if (!NotecardCache.IsCached(assetID)) | 1403 | if (!NotecardCache.IsCached(assetID)) |
1404 | { | 1404 | { |
1405 | AssetBase a = World.CommsManager.AssetCache.GetAsset(assetID, false); | 1405 | AssetBase a = World.AssetService.Get(assetID.ToString()); |
1406 | if (a != null) | 1406 | if (a != null) |
1407 | { | 1407 | { |
1408 | System.Text.ASCIIEncoding enc = new System.Text.ASCIIEncoding(); | 1408 | System.Text.ASCIIEncoding enc = new System.Text.ASCIIEncoding(); |
@@ -1455,7 +1455,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api | |||
1455 | 1455 | ||
1456 | if (!NotecardCache.IsCached(assetID)) | 1456 | if (!NotecardCache.IsCached(assetID)) |
1457 | { | 1457 | { |
1458 | AssetBase a = World.CommsManager.AssetCache.GetAsset(assetID, false); | 1458 | AssetBase a = World.AssetService.Get(assetID.ToString()); |
1459 | if (a != null) | 1459 | if (a != null) |
1460 | { | 1460 | { |
1461 | System.Text.ASCIIEncoding enc = new System.Text.ASCIIEncoding(); | 1461 | System.Text.ASCIIEncoding enc = new System.Text.ASCIIEncoding(); |
@@ -1512,7 +1512,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api | |||
1512 | 1512 | ||
1513 | if (!NotecardCache.IsCached(assetID)) | 1513 | if (!NotecardCache.IsCached(assetID)) |
1514 | { | 1514 | { |
1515 | AssetBase a = World.CommsManager.AssetCache.GetAsset(assetID, false); | 1515 | AssetBase a = World.AssetService.Get(assetID.ToString()); |
1516 | if (a != null) | 1516 | if (a != null) |
1517 | { | 1517 | { |
1518 | System.Text.ASCIIEncoding enc = new System.Text.ASCIIEncoding(); | 1518 | System.Text.ASCIIEncoding enc = new System.Text.ASCIIEncoding(); |