on load, store the env via the module, so it is stored. This api is still a bit incoerent

master
UbitUmarov 2020-06-22 16:47:20 +01:00
parent 16c18c0855
commit 7b3ac662dc
1 changed files with 5 additions and 1 deletions

View File

@ -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;