mirror of
https://github.com/sbrl/Minetest-WorldEditAdditions.git
synced 2024-11-29 18:33:01 +00:00
Notify.suppress_for_function now actually returns results!
This commit is contained in:
parent
5331b32159
commit
440dae68a1
1 changed files with 2 additions and 1 deletions
|
@ -153,8 +153,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
|
||||||
suppress[name]()
|
local success, result = suppress[name]()
|
||||||
suppress[name] = nil
|
suppress[name] = nil
|
||||||
|
return success, result
|
||||||
end
|
end
|
||||||
|
|
||||||
--- WorldEdit compatibility
|
--- WorldEdit compatibility
|
||||||
|
|
Loading…
Reference in a new issue