From 392689e7ba9980efcea87ca6cb9fcfa64330d009 Mon Sep 17 00:00:00 2001 From: Kahrl Date: Sun, 18 Aug 2013 15:15:33 +0200 Subject: [PATCH] Fix trailing nils being dropped by deprecated minetest.env handler --- builtin/deprecated.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/builtin/deprecated.lua b/builtin/deprecated.lua index 23ab3867..333f64cd 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) -- 2.30.2