mirror of
https://github.com/opensim/opensim.git
synced 2026-08-05 00:46:02 +08:00
ok change a confusing expire renew of 0 (that does mean that cache min expire time)
This commit is contained in:
@@ -18605,7 +18605,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||
|
||||
public static int GetLines(UUID assetID)
|
||||
{
|
||||
if (m_Notecards.TryGetValue(assetID, 0, out string[] text))
|
||||
if (m_Notecards.TryGetValue(assetID, 30000, out string[] text))
|
||||
return text.Length;
|
||||
return -1;
|
||||
}
|
||||
@@ -18618,7 +18618,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||
/// <returns></returns>
|
||||
public static string GetLine(UUID assetID, int lineNumber)
|
||||
{
|
||||
if (lineNumber >= 0 && m_Notecards.TryGetValue(assetID, 0, out string[] text))
|
||||
if (lineNumber >= 0 && m_Notecards.TryGetValue(assetID, 30000, out string[] text))
|
||||
{
|
||||
if (lineNumber >= text.Length)
|
||||
return "\n\n\n";
|
||||
|
||||
Reference in New Issue
Block a user