Fix: crash

This commit is contained in:
Coder12a 2020-01-01 23:13:01 -06:00
parent ea15d7ef6f
commit ae09c39950

View File

@ -131,7 +131,9 @@ function factions.register_command(cmd_name, cmd)
register_command(cmd_name, cmd)
elseif cmd_type == "table" then
for k, v in pairs(cmd_name) do
cmd.dont_show_in_help = next
if next then
cmd.dont_show_in_help = true
end
register_command(v, cmd)
next = true
end