aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--OpenSim/Region/CoreModules/World/Terrain/TerrainModule.cs9
1 files changed, 5 insertions, 4 deletions
diff --git a/OpenSim/Region/CoreModules/World/Terrain/TerrainModule.cs b/OpenSim/Region/CoreModules/World/Terrain/TerrainModule.cs
index 3f848ed..3546654 100644
--- a/OpenSim/Region/CoreModules/World/Terrain/TerrainModule.cs
+++ b/OpenSim/Region/CoreModules/World/Terrain/TerrainModule.cs
@@ -1176,7 +1176,8 @@ namespace OpenSim.Region.CoreModules.World.Terrain
1176 1176
1177 private void InterfaceRunPluginEffect(Object[] args) 1177 private void InterfaceRunPluginEffect(Object[] args)
1178 { 1178 {
1179 if ((string) args[0] == "list") 1179 string firstArg = (string)args[0];
1180 if (firstArg == "list")
1180 { 1181 {
1181 m_log.Info("List of loaded plugins"); 1182 m_log.Info("List of loaded plugins");
1182 foreach (KeyValuePair<string, ITerrainEffect> kvp in m_plugineffects) 1183 foreach (KeyValuePair<string, ITerrainEffect> kvp in m_plugineffects)
@@ -1185,14 +1186,14 @@ namespace OpenSim.Region.CoreModules.World.Terrain
1185 } 1186 }
1186 return; 1187 return;
1187 } 1188 }
1188 if ((string) args[0] == "reload") 1189 if (firstArg == "reload")
1189 { 1190 {
1190 LoadPlugins(); 1191 LoadPlugins();
1191 return; 1192 return;
1192 } 1193 }
1193 if (m_plugineffects.ContainsKey((string) args[0])) 1194 if (m_plugineffects.ContainsKey(firstArg))
1194 { 1195 {
1195 m_plugineffects[(string) args[0]].RunEffect(m_channel); 1196 m_plugineffects[firstArg].RunEffect(m_channel);
1196 CheckForTerrainUpdates(); 1197 CheckForTerrainUpdates();
1197 } 1198 }
1198 else 1199 else