use objectPart

master
Christopher 2020-08-06 23:40:09 +02:00
parent df43e1bab5
commit aae09109a9
1 changed files with 4 additions and 4 deletions

View File

@ -124,7 +124,7 @@ namespace OpenSim.Modules.DataValue
{ {
if(m_storage != null) if(m_storage != null)
{ {
SceneObjectGroup _host = m_scene.GetSceneObjectGroup(hostID); SceneObjectPart _host = m_scene.GetSceneObjectPart(hostID);
StorageElement _element = m_cache.Find(X => X.Group == _host.GroupID.ToString() && X.Index == key); StorageElement _element = m_cache.Find(X => X.Group == _host.GroupID.ToString() && X.Index == key);
if (_element != null) if (_element != null)
@ -157,7 +157,7 @@ namespace OpenSim.Modules.DataValue
{ {
if (m_storage != null) if (m_storage != null)
{ {
SceneObjectGroup _host = m_scene.GetSceneObjectGroup(hostID); SceneObjectPart _host = m_scene.GetSceneObjectPart(hostID);
StorageElement _element = m_cache.Find(X => X.Group == _host.GroupID.ToString() && X.Index == key); StorageElement _element = m_cache.Find(X => X.Group == _host.GroupID.ToString() && X.Index == key);
if (_element != null) if (_element != null)
@ -185,7 +185,7 @@ namespace OpenSim.Modules.DataValue
[ScriptInvocation] [ScriptInvocation]
public void osDeleteDataValue(UUID hostID, UUID scriptID, string key, string value) public void osDeleteDataValue(UUID hostID, UUID scriptID, string key, string value)
{ {
SceneObjectGroup _host = m_scene.GetSceneObjectGroup(hostID); SceneObjectPart _host = m_scene.GetSceneObjectPart(hostID);
StorageElement _element = m_cache.Find(X => X.Group == _host.GroupID.ToString() && X.Index == key); StorageElement _element = m_cache.Find(X => X.Group == _host.GroupID.ToString() && X.Index == key);
checkRateLimit(); checkRateLimit();
@ -214,7 +214,7 @@ namespace OpenSim.Modules.DataValue
{ {
if (m_storage != null) if (m_storage != null)
{ {
SceneObjectGroup _host = m_scene.GetSceneObjectGroup(hostID); SceneObjectPart _host = m_scene.GetSceneObjectPart(hostID);
StorageElement _element = m_cache.Find(X => X.Group == _host.GroupID.ToString() && X.Index == key); StorageElement _element = m_cache.Find(X => X.Group == _host.GroupID.ToString() && X.Index == key);
if (_element != null) if (_element != null)