mirror of
https://github.com/sbrl/Minetest-WorldEditAdditions.git
synced 2024-12-25 12:55:02 +00:00
saferegion: fix missing return
This commit is contained in:
parent
5d9dee9523
commit
888e4b0f78
1 changed files with 1 additions and 0 deletions
|
@ -25,6 +25,7 @@ local function run_command(cmdname, options, player_name, paramtext)
|
|||
local pos_count = wea_c.pos.count(player_name)
|
||||
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).")
|
||||
return false
|
||||
end
|
||||
|
||||
local parse_result = { options.parse(paramtext) }
|
||||
|
|
Loading…
Reference in a new issue