summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShadowNinja <noreply@gmail.com>2013-09-08 20:52:20 -0400
committerShadowNinja <noreply@gmail.com>2013-09-08 20:52:20 -0400
commit547fa726bfe4c8e0c984bbda55962e801d873080 (patch)
tree4b0ffde0c8d35c0a34bbd57aa7926450aeaa5460
parente86c760c782d4c521ebcac031d9c3f1fd691880e (diff)
Fix crash with invalid number passed to select_area
-rw-r--r--pos.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/pos.lua b/pos.lua
index 0ff94d7..80ff5b5 100644
--- a/pos.lua
+++ b/pos.lua
@@ -19,6 +19,7 @@ minetest.register_chatcommand("select_area", {
if not id then
minetest.chat_send_player(name,
"Invalid usage, see /help select_area.")
+ return
end
for k, area in pairs(areas.areas) do