mirror of
https://github.com/opensim/opensim.git
synced 2026-05-15 03:15:41 +08:00
When determining if a sim can be shut down, ignore NPCs
This commit is contained in:
@@ -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++;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user