Fix always executing 1st command in list only
This commit is contained in:
parent
ca62e50f38
commit
c78f609e10
2
init.lua
2
init.lua
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user