mirror of
https://github.com/opensim/opensim.git
synced 2026-08-05 08:55:56 +08:00
on load, store the env via the module, so it is stored. This api is still a bit incoerent
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user