mirror of
https://github.com/sbrl/Minetest-WorldEditAdditions.git
synced 2024-12-23 03:55:01 +00:00
run_command: formatting
This commit is contained in:
parent
698ca09336
commit
e8ad24e8bd
1 changed files with 1 additions and 1 deletions
|
@ -67,7 +67,7 @@ local function run_command_stage2(player_name, func, parse_result, tbl_event)
|
||||||
if (#retvals > 2 or #retvals < 1) and not tbl_event.cmddef.async then
|
if (#retvals > 2 or #retvals < 1) and not tbl_event.cmddef.async then
|
||||||
weac.notify.error(player_name, "[//"..tostring(tbl_event.cmdname).."] This command is not async and the main execution function for it returned "..tostring(#retvals).." arguments instead of the expected 2 (success, message), so it is unclear whether it succeeded or not. This is a bug!")
|
weac.notify.error(player_name, "[//"..tostring(tbl_event.cmdname).."] This command is not async and the main execution function for it returned "..tostring(#retvals).." arguments instead of the expected 2 (success, message), so it is unclear whether it succeeded or not. This is a bug!")
|
||||||
end
|
end
|
||||||
|
|
||||||
if #retvals == 2 or #retvals == 1 then
|
if #retvals == 2 or #retvals == 1 then
|
||||||
local success = retvals[1]
|
local success = retvals[1]
|
||||||
local result_message
|
local result_message
|
||||||
|
|
Loading…
Reference in a new issue