Skip to content

Commit

Permalink
provide alternative to table.pack()
Browse files Browse the repository at this point in the history
  • Loading branch information
SwissalpS committed Sep 18, 2024
1 parent fdc9625 commit 871f523
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion mtt.lua
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 871f523

Please sign in to comment.