diff options
Small bit of refactoring to the startup command script code (moved it into a separate method), so that I could add a new CLI command of "command-script <fileName>", so that as well as the startup command script still being processed on startup. A user can create other command scripts and use the single command ("command-script <filename>") to run them at any time. Could be useful for trying out various configurations etc.
Diffstat (limited to 'OpenSim/Region/Environment/LandManagement')
-rw-r--r-- | OpenSim/Region/Environment/LandManagement/LandManager.cs | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/OpenSim/Region/Environment/LandManagement/LandManager.cs b/OpenSim/Region/Environment/LandManagement/LandManager.cs index 2f345f4..1ed0642 100644 --- a/OpenSim/Region/Environment/LandManagement/LandManager.cs +++ b/OpenSim/Region/Environment/LandManagement/LandManager.cs | |||
@@ -207,8 +207,7 @@ namespace OpenSim.Region.Environment.LandManagement | |||
207 | 207 | ||
208 | if (x > 63 || y > 63 || x < 0 || y < 0) | 208 | if (x > 63 || y > 63 || x < 0 || y < 0) |
209 | { | 209 | { |
210 | return null; | 210 | throw new Exception("Error: Parcel not found at point " + x + ", " + y); |
211 | //throw new Exception("Error: Parcel not found at point " + x + ", " + y); | ||
212 | } | 211 | } |
213 | else | 212 | else |
214 | { | 213 | { |
@@ -221,8 +220,7 @@ namespace OpenSim.Region.Environment.LandManagement | |||
221 | { | 220 | { |
222 | if (x > 256 || y > 256 || x < 0 || y < 0) | 221 | if (x > 256 || y > 256 || x < 0 || y < 0) |
223 | { | 222 | { |
224 | return null; | 223 | throw new Exception("Error: Parcel not found at point " + x + ", " + y); |
225 | //throw new Exception("Error: Parcel not found at point " + x + ", " + y); | ||
226 | } | 224 | } |
227 | else | 225 | else |
228 | { | 226 | { |