diff options
-rw-r--r-- | OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs index 1f1d45e..614872e 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs | |||
@@ -2584,15 +2584,15 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api | |||
2584 | CheckThreatLevel(ThreatLevel.High, "osNpcRemove"); | 2584 | CheckThreatLevel(ThreatLevel.High, "osNpcRemove"); |
2585 | m_host.AddScriptLPS(1); | 2585 | m_host.AddScriptLPS(1); |
2586 | 2586 | ||
2587 | INPCModule module = World.RequestModuleInterface<INPCModule>(); | 2587 | Util.FireAndForget(delegate(object x) { |
2588 | if (module != null) | 2588 | INPCModule module = World.RequestModuleInterface<INPCModule>(); |
2589 | { | 2589 | if (module != null) |
2590 | UUID npcId = new UUID(npc.m_string); | 2590 | { |
2591 | UUID npcId = new UUID(npc.m_string); | ||
2591 | 2592 | ||
2592 | if (!module.CheckPermissions(npcId, m_host.OwnerID)) | 2593 | if (!module.CheckPermissions(npcId, m_host.OwnerID)) |
2593 | return; | 2594 | return; |
2594 | 2595 | ||
2595 | Util.FireAndForget(delegate(object x) { | ||
2596 | module.DeleteNPC(npcId, World); | 2596 | module.DeleteNPC(npcId, World); |
2597 | }); | 2597 | }); |
2598 | } | 2598 | } |