HGWorldMapModule: check whether it's enabled or not.

TeleportWork
Diva Canto 2013-07-31 11:13:55 -07:00
parent 3c540f0d33
commit 87fcff9fc3
1 changed files with 6 additions and 0 deletions

View File

@ -77,6 +77,9 @@ namespace OpenSim.Region.CoreModules.Hypergrid
public override void AddRegion(Scene scene) public override void AddRegion(Scene scene)
{ {
if (!m_Enabled)
return;
base.AddRegion(scene); base.AddRegion(scene);
scene.EventManager.OnClientClosed += new EventManager.ClientClosed(EventManager_OnClientClosed); scene.EventManager.OnClientClosed += new EventManager.ClientClosed(EventManager_OnClientClosed);
@ -84,6 +87,9 @@ namespace OpenSim.Region.CoreModules.Hypergrid
public override void RegionLoaded(Scene scene) public override void RegionLoaded(Scene scene)
{ {
if (!m_Enabled)
return;
base.RegionLoaded(scene); base.RegionLoaded(scene);
ISimulatorFeaturesModule featuresModule = m_scene.RequestModuleInterface<ISimulatorFeaturesModule>(); ISimulatorFeaturesModule featuresModule = m_scene.RequestModuleInterface<ISimulatorFeaturesModule>();