From 7c2398b5413e063dd7ec0d1c17c9664861f18515 Mon Sep 17 00:00:00 2001 From: Luke aka SwissalpS Date: Wed, 18 Sep 2024 03:52:49 +0200 Subject: [PATCH] provide alternative to table.pack() --- mtt.lua | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/mtt.lua b/mtt.lua index 74d8581..5fa9276 100644 --- a/mtt.lua +++ b/mtt.lua @@ -1,7 +1,12 @@ -- requires [fakelib] to work properly -- https://github.com/OgelGames/fakelib.git -local pd = function(...) print(dump(table.pack(...))) end +local pd +if table.packer then + pd = function(...) print(dump(table.pack(...))) end +else + pd = function(...) for _, v in ipairs({ ... }) do print(dump(v)) end end +end local f, fcc, S = factions, factions.handle_command, factions.S f.mode_unique_faction = false f.max_members_list = 11