From aae09109a9ec919a88d18fca4a2a20455a227638 Mon Sep 17 00:00:00 2001 From: Christopher Date: Thu, 6 Aug 2020 23:40:09 +0200 Subject: [PATCH] use objectPart --- src/DataValue.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/DataValue.cs b/src/DataValue.cs index b9df10a..83a156e 100644 --- a/src/DataValue.cs +++ b/src/DataValue.cs @@ -124,7 +124,7 @@ namespace OpenSim.Modules.DataValue { 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); if (_element != null) @@ -157,7 +157,7 @@ namespace OpenSim.Modules.DataValue { 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); if (_element != null) @@ -185,7 +185,7 @@ namespace OpenSim.Modules.DataValue [ScriptInvocation] 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); checkRateLimit(); @@ -214,7 +214,7 @@ namespace OpenSim.Modules.DataValue { 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); if (_element != null)