mirror of
https://github.com/sbrl/Minetest-WorldEditAdditions.git
synced 2024-08-20 21:44:06 +02:00
saferegion: fix missing return
This commit is contained in:
parent
5d9dee9523
commit
888e4b0f78
@ -25,6 +25,7 @@ local function run_command(cmdname, options, player_name, paramtext)
|
|||||||
local pos_count = wea_c.pos.count(player_name)
|
local pos_count = wea_c.pos.count(player_name)
|
||||||
if options.require_pos > 2 and pos_count < options.require_pos then
|
if options.require_pos > 2 and pos_count < options.require_pos then
|
||||||
worldedit.player_notify(player_name, "Error: At least "..options.require_pos.."positions must be defined to use this command, but you only have "..pos_count.." defined (try using the multiwand).")
|
worldedit.player_notify(player_name, "Error: At least "..options.require_pos.."positions must be defined to use this command, but you only have "..pos_count.." defined (try using the multiwand).")
|
||||||
|
return false
|
||||||
end
|
end
|
||||||
|
|
||||||
local parse_result = { options.parse(paramtext) }
|
local parse_result = { options.parse(paramtext) }
|
||||||
|
Loading…
Reference in New Issue
Block a user