Fix osTeleportAgent for hypergrid destinations.
Signed-off-by: Melanie <melanie@t-data.com>viewer-2-initial-appearance
parent
50202bab7c
commit
56bd42b438
|
@ -665,7 +665,11 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
|||
if (regions != null && regions.Count > 0)
|
||||
{
|
||||
GridRegion regInfo = regions[0];
|
||||
regionName = regInfo.RegionName;
|
||||
string[] parts = regInfo.RegionName.Split(new char[] { ':' });
|
||||
if (parts.Length > 2)
|
||||
regionName = parts[2];
|
||||
else
|
||||
regionName = parts[0];
|
||||
}
|
||||
}
|
||||
World.RequestTeleportLocation(presence.ControllingClient, regionName,
|
||||
|
|
Loading…
Reference in New Issue