mirror of
https://github.com/minetest/minetest.git
synced 2024-12-24 23:22:24 +01:00
Fix trailing nils being dropped by deprecated minetest.env handler
This commit is contained in:
parent
09a50d0458
commit
392689e7ba
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user