mirror of
https://github.com/opensim/opensim.git
synced 2026-05-15 11:25:39 +08:00
osNpcLookAt() should only work on NPC's, not on regular users
This commit is contained in:
@@ -6080,7 +6080,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||
return -2;
|
||||
|
||||
ScenePresence npcSP = World.GetScenePresence(npc);
|
||||
if(npc == null)
|
||||
if((npcSP == null) || !npcSP.IsNPC)
|
||||
return -3;
|
||||
|
||||
if (!UUID.TryParse(objkey, out UUID obj))
|
||||
|
||||
Reference in New Issue
Block a user