When determining if a sim can be shut down, ignore NPCs

melanie
Melanie Thielker 2017-03-31 13:47:53 +01:00
parent 75915bd0f3
commit c0ce746e2d
1 changed files with 2 additions and 2 deletions

View File

@ -370,7 +370,7 @@ namespace OpenSim.ApplicationPlugins.RemoteController
{
foreach (ScenePresence sp in s.GetScenePresences())
{
if (!sp.IsChildAgent)
if (!sp.IsChildAgent && !sp.IsNPC)
agents++;
}
}
@ -379,7 +379,7 @@ namespace OpenSim.ApplicationPlugins.RemoteController
{
foreach (ScenePresence sp in rebootedScene.GetScenePresences())
{
if (!sp.IsChildAgent)
if (!sp.IsChildAgent && !sp.IsNPC)
agents++;
}
}