Changing the region module loading foreach loops to typecast things to the IRegionModuleBase interface where AddRegion(), RegionLoaded(), etc. actually exist. Shot in the dark at fixing the Mono issue

prioritization
John Hurliman 2009-10-16 15:50:22 -07:00
parent c04ffe5c94
commit f3f93228e0
1 changed files with 3 additions and 3 deletions

View File

@ -268,7 +268,7 @@ namespace OpenSim.ApplicationPlugins.RegionModulesController
deferredlist.Add(module);
}
foreach (INonSharedRegionModule module in deferredlist)
foreach (IRegionModuleBase module in deferredlist)
{
module.AddRegion(scene);
scene.AddRegionModule(module.Name, module);
@ -284,13 +284,13 @@ namespace OpenSim.ApplicationPlugins.RegionModulesController
// and unneccessary caching logic repeated in all modules.
// The extra function stub is just that much cleaner
//
foreach (ISharedRegionModule module in sharedlist)
foreach (IRegionModuleBase module in sharedlist)
{
try { module.RegionLoaded(scene); }
catch (Exception ex) { m_log.Error("[REGIONMODULE]: Exception while loading shared region module " + module + ": " + ex.Message, ex); }
}
foreach (INonSharedRegionModule module in list)
foreach (IRegionModuleBase module in list)
{
try { module.RegionLoaded(scene); }
catch (Exception ex) { m_log.Error("[REGIONMODULE]: Exception while loading non-shared region module " + module + ": " + ex.Message, ex); }