Implement the hook needed for the CanTeleport check

0.6.0-stable
Melanie Thielker 2008-10-11 22:11:48 +00:00
parent 38a0a68091
commit 82b2b2dccb
1 changed files with 3 additions and 0 deletions

View File

@ -606,6 +606,9 @@ namespace OpenSim.Region.Environment.Scenes
public virtual void RequestTeleportToLocation(ScenePresence avatar, ulong regionHandle, Vector3 position,
Vector3 lookAt, uint teleportFlags)
{
if (!avatar.Scene.ExternalChecks.ExternalChecksCanTeleport(avatar.UUID))
return;
bool destRegionUp = false;
IEventQueue eq = avatar.Scene.RequestModuleInterface<IEventQueue>();