diff options
Diffstat (limited to 'OpenSim/Region')
-rw-r--r-- | OpenSim/Region/CoreModules/World/Terrain/TerrainModule.cs | 44 |
1 files changed, 22 insertions, 22 deletions
diff --git a/OpenSim/Region/CoreModules/World/Terrain/TerrainModule.cs b/OpenSim/Region/CoreModules/World/Terrain/TerrainModule.cs index 620d3b5..4694b14 100644 --- a/OpenSim/Region/CoreModules/World/Terrain/TerrainModule.cs +++ b/OpenSim/Region/CoreModules/World/Terrain/TerrainModule.cs | |||
@@ -438,32 +438,32 @@ namespace OpenSim.Region.CoreModules.World.Terrain | |||
438 | 438 | ||
439 | private void LoadPlugins(Assembly library) | 439 | private void LoadPlugins(Assembly library) |
440 | { | 440 | { |
441 | foreach (Type pluginType in library.GetTypes()) | 441 | foreach (Type pluginType in library.GetTypes()) |
442 | { | 442 | { |
443 | try | 443 | try |
444 | { | 444 | { |
445 | if (pluginType.IsAbstract || pluginType.IsNotPublic) | 445 | if (pluginType.IsAbstract || pluginType.IsNotPublic) |
446 | continue; | 446 | continue; |
447 | 447 | ||
448 | string typeName = pluginType.Name; | 448 | string typeName = pluginType.Name; |
449 | 449 | ||
450 | if (pluginType.GetInterface("ITerrainEffect", false) != null) | 450 | if (pluginType.GetInterface("ITerrainEffect", false) != null) |
451 | { | 451 | { |
452 | ITerrainEffect terEffect = (ITerrainEffect) Activator.CreateInstance(library.GetType(pluginType.ToString())); | 452 | ITerrainEffect terEffect = (ITerrainEffect)Activator.CreateInstance(library.GetType(pluginType.ToString())); |
453 | 453 | ||
454 | InstallPlugin(typeName, terEffect); | 454 | InstallPlugin(typeName, terEffect); |
455 | } | 455 | } |
456 | else if (pluginType.GetInterface("ITerrainLoader", false) != null) | 456 | else if (pluginType.GetInterface("ITerrainLoader", false) != null) |
457 | { | 457 | { |
458 | ITerrainLoader terLoader = (ITerrainLoader) Activator.CreateInstance(library.GetType(pluginType.ToString())); | 458 | ITerrainLoader terLoader = (ITerrainLoader)Activator.CreateInstance(library.GetType(pluginType.ToString())); |
459 | m_loaders[terLoader.FileExtension] = terLoader; | 459 | m_loaders[terLoader.FileExtension] = terLoader; |
460 | m_log.Info("L ... " + typeName); | 460 | m_log.Info("L ... " + typeName); |
461 | } | ||
462 | } | ||
463 | catch (AmbiguousMatchException) | ||
464 | { | ||
465 | } | ||
466 | } | 461 | } |
462 | } | ||
463 | catch (AmbiguousMatchException) | ||
464 | { | ||
465 | } | ||
466 | } | ||
467 | } | 467 | } |
468 | 468 | ||
469 | public void InstallPlugin(string pluginName, ITerrainEffect effect) | 469 | public void InstallPlugin(string pluginName, ITerrainEffect effect) |