Implement the hook needed for the CanTeleport check
parent
38a0a68091
commit
82b2b2dccb
|
@ -606,6 +606,9 @@ namespace OpenSim.Region.Environment.Scenes
|
||||||
public virtual void RequestTeleportToLocation(ScenePresence avatar, ulong regionHandle, Vector3 position,
|
public virtual void RequestTeleportToLocation(ScenePresence avatar, ulong regionHandle, Vector3 position,
|
||||||
Vector3 lookAt, uint teleportFlags)
|
Vector3 lookAt, uint teleportFlags)
|
||||||
{
|
{
|
||||||
|
if (!avatar.Scene.ExternalChecks.ExternalChecksCanTeleport(avatar.UUID))
|
||||||
|
return;
|
||||||
|
|
||||||
bool destRegionUp = false;
|
bool destRegionUp = false;
|
||||||
|
|
||||||
IEventQueue eq = avatar.Scene.RequestModuleInterface<IEventQueue>();
|
IEventQueue eq = avatar.Scene.RequestModuleInterface<IEventQueue>();
|
||||||
|
|
Loading…
Reference in New Issue