mirror of
https://github.com/opensim/opensim.git
synced 2026-07-31 22:05:36 +08:00
Prevent llTeleportAgentHome from affecting gods
This commit is contained in:
@@ -4193,6 +4193,9 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||
ScenePresence presence = World.GetScenePresence(agentId);
|
||||
if (presence != null)
|
||||
{
|
||||
// agent must not be a god
|
||||
if (presence.GodLevel >= 200) return;
|
||||
|
||||
// agent must be over the owners land
|
||||
if (m_host.OwnerID == World.LandChannel.GetLandObject(
|
||||
presence.AbsolutePosition.X, presence.AbsolutePosition.Y).LandData.OwnerID)
|
||||
|
||||
Reference in New Issue
Block a user