Fix always executing 1st command in list only

master
Wuzzy 2020-11-23 19:43:49 +01:00
parent ca62e50f38
commit c78f609e10
1 changed files with 1 additions and 1 deletions

View File

@ -90,7 +90,7 @@ local execute_command = function(itemstack, player, pointed_thing)
end
local player_privs = minetest.get_player_privs(player_name)
for c=1, #cmds do
local cmd = cmds[1]
local cmd = cmds[c]
-- Substitution successful?
-- Split command string into command name and parameters
local cmd_split = string.split(cmd, " ", false, 1)