Skip to content
Snippets Groups Projects
Commit 392689e7 authored by Kahrl's avatar Kahrl
Browse files

Fix trailing nils being dropped by deprecated minetest.env handler

parent 09a50d04
No related branches found
No related tags found
No related merge requests found
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment