mirror of
https://github.com/mt-mods/playerfactions.git
synced 2024-11-22 07:13:50 +01:00
provide alternative to table.pack()
This commit is contained in:
parent
210f0ab21d
commit
7c2398b541
7
mtt.lua
7
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
|
||||
|
Loading…
Reference in New Issue
Block a user