Adapt some TeleportWithMomentum calls
parent
916e372382
commit
88c9fdfa3a
|
@ -1771,7 +1771,7 @@ namespace OpenSim.Region.CoreModules.World.Land
|
||||||
|
|
||||||
Vector3 pos = m_scene.GetNearestAllowedPosition(targetAvatar, land);
|
Vector3 pos = m_scene.GetNearestAllowedPosition(targetAvatar, land);
|
||||||
|
|
||||||
targetAvatar.TeleportWithMomentum(pos);
|
targetAvatar.TeleportWithMomentum(pos, null);
|
||||||
targetAvatar.ControllingClient.SendAlertMessage("You have been ejected by " + parcelManager.Firstname + " " + parcelManager.Lastname);
|
targetAvatar.ControllingClient.SendAlertMessage("You have been ejected by " + parcelManager.Firstname + " " + parcelManager.Lastname);
|
||||||
parcelManager.ControllingClient.SendAlertMessage("Avatar Ejected.");
|
parcelManager.ControllingClient.SendAlertMessage("Avatar Ejected.");
|
||||||
|
|
||||||
|
|
|
@ -6115,7 +6115,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||||
if (m_host.OwnerID == land.LandData.OwnerID)
|
if (m_host.OwnerID == land.LandData.OwnerID)
|
||||||
{
|
{
|
||||||
Vector3 pos = World.GetNearestAllowedPosition(presence, land);
|
Vector3 pos = World.GetNearestAllowedPosition(presence, land);
|
||||||
presence.TeleportWithMomentum(pos);
|
presence.TeleportWithMomentum(pos, null);
|
||||||
presence.ControllingClient.SendAlertMessage("You have been ejected from this land");
|
presence.ControllingClient.SendAlertMessage("You have been ejected from this land");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue