From e8ad24e8bddd589ca7da31edb38cad2e027600be Mon Sep 17 00:00:00 2001 From: Starbeamrainbowlabs Date: Fri, 18 Oct 2024 21:15:06 +0100 Subject: [PATCH] run_command: formatting --- worldeditadditions_core/core/run_command.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/worldeditadditions_core/core/run_command.lua b/worldeditadditions_core/core/run_command.lua index c0560ac..929da9a 100644 --- a/worldeditadditions_core/core/run_command.lua +++ b/worldeditadditions_core/core/run_command.lua @@ -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 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 - + if #retvals == 2 or #retvals == 1 then local success = retvals[1] local result_message