mirror of
https://github.com/sbrl/Minetest-WorldEditAdditions.git
synced 2024-10-28 11:19:31 +01:00
switched to unpack method
This commit is contained in:
parent
c86319d94e
commit
63bdbdfac9
@ -156,9 +156,9 @@ function Notify.suppress_for_function(name, func)
|
|||||||
-- If the player is already suppressed, cancel it unless it's a function
|
-- If the player is already suppressed, cancel it unless it's a function
|
||||||
if not check_clear_suppressed(name, suppress) then return false end
|
if not check_clear_suppressed(name, suppress) then return false end
|
||||||
suppress[name] = func
|
suppress[name] = func
|
||||||
local success, result = suppress[name]()
|
local result_table = { suppress[name]() }
|
||||||
suppress[name] = nil
|
suppress[name] = nil
|
||||||
return success, result
|
return wea_c.table.unpack(result_table)
|
||||||
end
|
end
|
||||||
|
|
||||||
--- WorldEdit compatibility
|
--- WorldEdit compatibility
|
||||||
|
Loading…
Reference in New Issue
Block a user