From f3f93228e02d9fae5baa55a7dd3de4ff7a630db3 Mon Sep 17 00:00:00 2001 From: John Hurliman Date: Fri, 16 Oct 2009 15:50:22 -0700 Subject: 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 --- .../RegionModulesController/RegionModulesControllerPlugin.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'OpenSim/ApplicationPlugins') diff --git a/OpenSim/ApplicationPlugins/RegionModulesController/RegionModulesControllerPlugin.cs b/OpenSim/ApplicationPlugins/RegionModulesController/RegionModulesControllerPlugin.cs index 518982e..a868bd0 100644 --- a/OpenSim/ApplicationPlugins/RegionModulesController/RegionModulesControllerPlugin.cs +++ b/OpenSim/ApplicationPlugins/RegionModulesController/RegionModulesControllerPlugin.cs @@ -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); } -- cgit v1.1