mirror of
https://github.com/opensim/opensim.git
synced 2026-08-01 06:06:06 +08:00
Experimental. Expand Fire & Forget for NPC delete
This commit is contained in:
@@ -2584,15 +2584,15 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||
CheckThreatLevel(ThreatLevel.High, "osNpcRemove");
|
||||
m_host.AddScriptLPS(1);
|
||||
|
||||
INPCModule module = World.RequestModuleInterface<INPCModule>();
|
||||
if (module != null)
|
||||
{
|
||||
UUID npcId = new UUID(npc.m_string);
|
||||
Util.FireAndForget(delegate(object x) {
|
||||
INPCModule module = World.RequestModuleInterface<INPCModule>();
|
||||
if (module != null)
|
||||
{
|
||||
UUID npcId = new UUID(npc.m_string);
|
||||
|
||||
if (!module.CheckPermissions(npcId, m_host.OwnerID))
|
||||
return;
|
||||
if (!module.CheckPermissions(npcId, m_host.OwnerID))
|
||||
return;
|
||||
|
||||
Util.FireAndForget(delegate(object x) {
|
||||
module.DeleteNPC(npcId, World);
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user