mirror of
https://github.com/opensim/opensim.git
synced 2026-08-05 17:05:55 +08:00
Put in temporary logging message to find out if scene objects are requesting land objects for co-ordinates outside the region
This commit is contained in:
@@ -762,13 +762,14 @@ namespace OpenSim.Region.CoreModules.World.Land
|
||||
{
|
||||
try
|
||||
{
|
||||
//if (m_landList.ContainsKey(m_landIDList[x / 4, y / 4]))
|
||||
return m_landList[m_landIDList[x / 4, y / 4]];
|
||||
//else
|
||||
// return null;
|
||||
return m_landList[m_landIDList[x / 4, y / 4]];
|
||||
}
|
||||
catch (IndexOutOfRangeException)
|
||||
{
|
||||
m_log.WarnFormat(
|
||||
"[LAND MANAGEMENT MODULE]: Tried to retrieve land object from out of bounds co-ordinate ({0},{1}) in {2}",
|
||||
x, y, m_scene.RegionInfo.RegionName);
|
||||
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user