mirror of
https://github.com/mt-mods/playerfactions.git
synced 2025-04-05 16:41:27 +02:00
provide alternative to table.pack()
This commit is contained in:
7
mtt.lua
7
mtt.lua
@ -1,7 +1,12 @@
|
|||||||
-- requires [fakelib] to work properly
|
-- requires [fakelib] to work properly
|
||||||
-- https://github.com/OgelGames/fakelib.git
|
-- 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
|
local f, fcc, S = factions, factions.handle_command, factions.S
|
||||||
f.mode_unique_faction = false
|
f.mode_unique_faction = false
|
||||||
f.max_members_list = 11
|
f.max_members_list = 11
|
||||||
|
Reference in New Issue
Block a user