mirror of
https://github.com/opensim/opensim.git
synced 2026-08-05 08:55:56 +08:00
dont list deleted ones, that still don't know they are gone
This commit is contained in:
@@ -3843,7 +3843,8 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||
LSL_List result = new LSL_List();
|
||||
World.ForEachRootScenePresence(delegate (ScenePresence avatar)
|
||||
{
|
||||
if (avatar != null && avatar.IsNPC)
|
||||
// npcs are not childagents but that is now.
|
||||
if (avatar != null && avatar.IsNPC && !avatar.IsDeleted && !avatar.IsChildAgent)
|
||||
{
|
||||
result.Add(new LSL_String(avatar.UUID.ToString()));
|
||||
result.Add(new LSL_Vector(avatar.AbsolutePosition));
|
||||
|
||||
Reference in New Issue
Block a user