When determining if a sim can be shut down, ignore NPCs
parent
75915bd0f3
commit
c0ce746e2d
|
@ -370,7 +370,7 @@ namespace OpenSim.ApplicationPlugins.RemoteController
|
||||||
{
|
{
|
||||||
foreach (ScenePresence sp in s.GetScenePresences())
|
foreach (ScenePresence sp in s.GetScenePresences())
|
||||||
{
|
{
|
||||||
if (!sp.IsChildAgent)
|
if (!sp.IsChildAgent && !sp.IsNPC)
|
||||||
agents++;
|
agents++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -379,7 +379,7 @@ namespace OpenSim.ApplicationPlugins.RemoteController
|
||||||
{
|
{
|
||||||
foreach (ScenePresence sp in rebootedScene.GetScenePresences())
|
foreach (ScenePresence sp in rebootedScene.GetScenePresences())
|
||||||
{
|
{
|
||||||
if (!sp.IsChildAgent)
|
if (!sp.IsChildAgent && !sp.IsNPC)
|
||||||
agents++;
|
agents++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue