Fix trailing nils being dropped by deprecated minetest.env handler
authorKahrl <kahrl@gmx.net>
Sun, 18 Aug 2013 13:15:33 +0000 (15:15 +0200)
committerKahrl <kahrl@gmx.net>
Sun, 18 Aug 2013 13:15:33 +0000 (15:15 +0200)
builtin/deprecated.lua

index 23ab386750674919d2cb45611070e427f26740a5..333f64cdc3c7d879d2d1a581fa699452b5d6ce63 100644 (file)
@@ -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)