mirror of
https://github.com/opensim/opensim.git
synced 2026-08-12 04:05:42 +08:00
Merge branch 'master' into careminster-presence-refactor
This commit is contained in:
@@ -30,7 +30,7 @@ using OpenSim.Region.CoreModules.World.Terrain;
|
||||
using OpenSim.Region.CoreModules.World.Terrain.FloodBrushes;
|
||||
using OpenSim.Region.Framework.Interfaces;
|
||||
|
||||
namespace OpenSim.Region.Modules.Terrain.Extensions.DefaultEffects.Effects
|
||||
namespace OpenSim.Region.CoreModules.World.Terrain.Effects
|
||||
{
|
||||
public class ChannelDigger : ITerrainEffect
|
||||
{
|
||||
@@ -68,7 +68,7 @@ namespace OpenSim.Region.CoreModules.World.Terrain
|
||||
#endregion
|
||||
|
||||
private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
|
||||
|
||||
|
||||
private readonly Commander m_commander = new Commander("terrain");
|
||||
|
||||
private readonly Dictionary<StandardTerrainEffects, ITerrainFloodEffect> m_floodeffects =
|
||||
@@ -381,8 +381,13 @@ namespace OpenSim.Region.CoreModules.World.Terrain
|
||||
private void LoadPlugins()
|
||||
{
|
||||
m_plugineffects = new Dictionary<string, ITerrainEffect>();
|
||||
string plugineffectsPath = "Terrain";
|
||||
|
||||
// Load the files in the Terrain/ dir
|
||||
string[] files = Directory.GetFiles("Terrain");
|
||||
if (!Directory.Exists(plugineffectsPath))
|
||||
return;
|
||||
|
||||
string[] files = Directory.GetFiles(plugineffectsPath);
|
||||
foreach (string file in files)
|
||||
{
|
||||
m_log.Info("Loading effects in " + file);
|
||||
|
||||
Reference in New Issue
Block a user