mirror of
https://github.com/opensim/opensim.git
synced 2026-08-01 22:26:09 +08:00
Also ignore NPCs in short-circuiting region restarts
This commit is contained in:
@@ -374,7 +374,7 @@ namespace OpenSim.Region.CoreModules.World.Region
|
||||
{
|
||||
foreach (ScenePresence sp in s.GetScenePresences())
|
||||
{
|
||||
if (!sp.IsChildAgent)
|
||||
if (!sp.IsChildAgent && !sp.IsNPC)
|
||||
agents++;
|
||||
}
|
||||
}
|
||||
@@ -383,7 +383,7 @@ namespace OpenSim.Region.CoreModules.World.Region
|
||||
{
|
||||
foreach (ScenePresence sp in m_Scene.GetScenePresences())
|
||||
{
|
||||
if (!sp.IsChildAgent)
|
||||
if (!sp.IsChildAgent && !sp.IsNPC)
|
||||
agents++;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user