//multi: fix luacheck error

This commit is contained in:
Starbeamrainbowlabs 2023-05-24 22:00:16 +01:00
parent b88cec64d4
commit 7cb1160e65
Signed by: sbrl
GPG key ID: 1BE5172E637709C2

View file

@ -17,9 +17,9 @@ minetest.register_chatcommand("/multi", {
-- Tokenise the input into a list of commands -- Tokenise the input into a list of commands
local success, commands = wea_c.parse.tokenise_commands(params_text) local success, commands = wea_c.parse.tokenise_commands(params_text)
if not success then return success, commands end if not success then return success, commands end
if type(commands) ~= "table" then return success, commands end
for i, command in ipairs(commands) do for i, command in ipairs(commands) do
-- print("[DEBUG] i", i, "command: '"..command.."'")
local start_time = wea_c.get_ms_time() local start_time = wea_c.get_ms_time()
local found, _, command_name, args = command:find("^([^%s]+)%s(.+)$") local found, _, command_name, args = command:find("^([^%s]+)%s(.+)$")