saferegion: fix missing return

This commit is contained in:
Starbeamrainbowlabs 2022-09-25 14:39:57 +01:00
parent 5d9dee9523
commit 888e4b0f78
No known key found for this signature in database
GPG Key ID: 1BE5172E637709C2

@ -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) }