aboutsummaryrefslogtreecommitdiff
path: root/builtin/deprecated.lua
diff options
context:
space:
mode:
authorKahrl <kahrl@gmx.net>2013-08-18 15:15:33 +0200
committerKahrl <kahrl@gmx.net>2013-08-18 15:15:33 +0200
commit392689e7ba9980efcea87ca6cb9fcfa64330d009 (patch)
treec2e1c4fe20f21796a3455d60b990b079d62d5a8e /builtin/deprecated.lua
parent09a50d0458f46c6129b4bea94502908241b3aed3 (diff)
downloadminetest-392689e7ba9980efcea87ca6cb9fcfa64330d009.tar.gz
minetest-392689e7ba9980efcea87ca6cb9fcfa64330d009.tar.bz2
minetest-392689e7ba9980efcea87ca6cb9fcfa64330d009.zip
Fix trailing nils being dropped by deprecated minetest.env handler
Diffstat (limited to 'builtin/deprecated.lua')
-rw-r--r--builtin/deprecated.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin/deprecated.lua b/builtin/deprecated.lua
index 23ab38675..333f64cdc 100644
--- a/builtin/deprecated.lua
+++ b/builtin/deprecated.lua
@@ -38,7 +38,7 @@ setmetatable(minetest.env, {
local func = minetest[key]
if type(func) == "function" then
rawset(table, key, function(self, ...)
- return func(unpack({...}))
+ return func(...)
end)
else
rawset(table, key, nil)