Skip to content

Instantly share code, notes, and snippets.

@kahrl
Created August 18, 2013 02:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kahrl/6259610 to your computer and use it in GitHub Desktop.
Save kahrl/6259610 to your computer and use it in GitHub Desktop.
diff --git a/builtin/deprecated.lua b/builtin/deprecated.lua
index 23ab386..333f64c 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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment