mirror of
https://github.com/sbrl/Minetest-WorldEditAdditions.git
synced 2024-11-27 09:33:52 +01: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)
|
||||
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 New Issue
Block a user