mirror of
https://github.com/opensim/opensim.git
synced 2026-08-11 20:05:33 +08:00
Don't register a region twice on both official registration and maptile regeneration.
Maptile storage appears orthogonal to region registration
This commit is contained in:
@@ -5017,18 +5017,16 @@ namespace OpenSim.Region.Framework.Scenes
|
||||
return offsets.ToArray();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Regenerate the maptile for this scene.
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
public void RegenerateMaptile(object sender, ElapsedEventArgs e)
|
||||
{
|
||||
IWorldMapModule mapModule = RequestModuleInterface<IWorldMapModule>();
|
||||
if (mapModule != null)
|
||||
{
|
||||
mapModule.GenerateMaptile();
|
||||
|
||||
string error = GridService.RegisterRegion(RegionInfo.ScopeID, new GridRegion(RegionInfo));
|
||||
|
||||
if (error != String.Empty)
|
||||
throw new Exception(error);
|
||||
}
|
||||
}
|
||||
|
||||
// This method is called across the simulation connector to
|
||||
|
||||
Reference in New Issue
Block a user