Remove unnecessary Lua version compatibility
Only Lua 5.1 and LuaJIT need support. The builtin Lua code uses plain old "unpack" anyway.
This commit is contained in:
parent
3368c608b2
commit
d072bcc8c3
@ -1,8 +1,7 @@
|
|||||||
std = "min"
|
std = "min"
|
||||||
read_globals = {
|
read_globals = {
|
||||||
"default", "digiline", "ItemStack", "mcl_sounds", "mesecon", "minetest",
|
"default", "digiline", "ItemStack", "mcl_sounds", "mesecon", "minetest",
|
||||||
"pipeworks", "table.copy", "table.unpack", "unpack", "VoxelArea",
|
"pipeworks", "table.copy", "unpack", "VoxelArea", "vector",
|
||||||
"vector",
|
|
||||||
}
|
}
|
||||||
globals = {"minetest.is_protected"}
|
globals = {"minetest.is_protected"}
|
||||||
ignore = {"21/_.*"}
|
ignore = {"21/_.*"}
|
||||||
|
2
init.lua
2
init.lua
@ -48,8 +48,6 @@ local function use(dep, keys)
|
|||||||
for i, key in ipairs(keys) do
|
for i, key in ipairs(keys) do
|
||||||
values[i] = returned[key]
|
values[i] = returned[key]
|
||||||
end
|
end
|
||||||
-- The location of unpack() may depend on the Lua version:
|
|
||||||
local unpack = unpack or table.unpack
|
|
||||||
return unpack(values, 1, #keys)
|
return unpack(values, 1, #keys)
|
||||||
else
|
else
|
||||||
return returned
|
return returned
|
||||||
|
Loading…
x
Reference in New Issue
Block a user