mirror of
https://github.com/minetest-mods/areas.git
synced 2024-12-25 02:00:40 +01:00
Fix crash with invalid number passed to select_area
This commit is contained in:
parent
e86c760c78
commit
547fa726bf
1
pos.lua
1
pos.lua
@ -19,6 +19,7 @@ minetest.register_chatcommand("select_area", {
|
|||||||
if not id then
|
if not id then
|
||||||
minetest.chat_send_player(name,
|
minetest.chat_send_player(name,
|
||||||
"Invalid usage, see /help select_area.")
|
"Invalid usage, see /help select_area.")
|
||||||
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
for k, area in pairs(areas.areas) do
|
for k, area in pairs(areas.areas) do
|
||||||
|
Loading…
Reference in New Issue
Block a user