From 392689e7ba9980efcea87ca6cb9fcfa64330d009 Mon Sep 17 00:00:00 2001 From: Kahrl Date: Sun, 18 Aug 2013 15:15:33 +0200 Subject: Fix trailing nils being dropped by deprecated minetest.env handler --- builtin/deprecated.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'builtin') 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) -- cgit v1.2.3