1
0
Fork 0

Fix trailing nils being dropped by deprecated minetest.env handler

mutilcraft-mt53
Kahrl 2013-08-18 15:15:33 +02:00
parent 09a50d0458
commit 392689e7ba
1 changed files with 1 additions and 1 deletions

View File

@ -38,7 +38,7 @@ setmetatable(minetest.env, {
local func = minetest[key] local func = minetest[key]
if type(func) == "function" then if type(func) == "function" then
rawset(table, key, function(self, ...) rawset(table, key, function(self, ...)
return func(unpack({...})) return func(...)
end) end)
else else
rawset(table, key, nil) rawset(table, key, nil)