Fix always executing 1st command in list only
parent
ca62e50f38
commit
c78f609e10
2
init.lua
2
init.lua
|
@ -90,7 +90,7 @@ local execute_command = function(itemstack, player, pointed_thing)
|
||||||
end
|
end
|
||||||
local player_privs = minetest.get_player_privs(player_name)
|
local player_privs = minetest.get_player_privs(player_name)
|
||||||
for c=1, #cmds do
|
for c=1, #cmds do
|
||||||
local cmd = cmds[1]
|
local cmd = cmds[c]
|
||||||
-- Substitution successful?
|
-- Substitution successful?
|
||||||
-- Split command string into command name and parameters
|
-- Split command string into command name and parameters
|
||||||
local cmd_split = string.split(cmd, " ", false, 1)
|
local cmd_split = string.split(cmd, " ", false, 1)
|
||||||
|
|
Loading…
Reference in New Issue