on load, store the env via the module, so it is stored. This api is still a bit incoerent
parent
16c18c0855
commit
7b3ac662dc
|
@ -1051,7 +1051,11 @@ namespace OpenSim.Region.CoreModules.World.Archiver
|
|||
settingsPath, e);
|
||||
return false;
|
||||
}
|
||||
scene.RegionEnvironment = regionEnv;
|
||||
|
||||
IEnvironmentModule mEnv = scene.RequestModuleInterface<IEnvironmentModule>();
|
||||
if(mEnv != null)
|
||||
mEnv.StoreOnRegion(regionEnv);
|
||||
|
||||
RegionSettings currentRegionSettings = scene.RegionInfo.RegionSettings;
|
||||
|
||||
currentRegionSettings.AgentLimit = loadedRegionSettings.AgentLimit;
|
||||
|
|
Loading…
Reference in New Issue