mirror of
https://github.com/opensim/opensim.git
synced 2026-08-09 18:55:58 +08:00
fix remote requests for dwell, so dwell module still called
This commit is contained in:
@@ -151,7 +151,11 @@ namespace OpenSim.Region.CoreModules.ServiceConnectorsIn.Land
|
||||
x = rx - s.RegionInfo.WorldLocX;
|
||||
y = ry - s.RegionInfo.WorldLocY;
|
||||
regionAccess = s.RegionInfo.AccessLevel;
|
||||
return s.GetLandData(x, y);
|
||||
LandData land = s.GetLandData(x, y);
|
||||
IDwellModule dwellModule = s.RequestModuleInterface<IDwellModule>();
|
||||
if (dwellModule != null)
|
||||
land.Dwell = dwellModule.GetDwell(land);
|
||||
return land;
|
||||
}
|
||||
}
|
||||
m_log.DebugFormat("[LAND IN CONNECTOR]: region handle {0} not found", regionHandle);
|
||||
|
||||
@@ -143,6 +143,10 @@ namespace OpenSim.Region.CoreModules.ServiceConnectorsOut.Land
|
||||
{
|
||||
LandData land = s.GetLandData(x, y);
|
||||
regionAccess = s.RegionInfo.AccessLevel;
|
||||
IDwellModule dwellModule = s.RequestModuleInterface<IDwellModule>();
|
||||
if (dwellModule != null)
|
||||
land.Dwell = dwellModule.GetDwell(land);
|
||||
|
||||
return land;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1948,6 +1948,9 @@ namespace OpenSim.Region.CoreModules.World.Land
|
||||
if (data.RegionHandle == m_scene.RegionInfo.RegionHandle)
|
||||
{
|
||||
info = new GridRegion(m_scene.RegionInfo);
|
||||
IDwellModule dwellModule = m_scene.RequestModuleInterface<IDwellModule>();
|
||||
if (dwellModule != null)
|
||||
data.LandData.Dwell = dwellModule.GetDwell(data.LandData);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user