Skip to content

Commit

Permalink
Notify.suppress_for_function now actually returns results!
Browse files Browse the repository at this point in the history
  • Loading branch information
VorTechnix committed Oct 17, 2024
1 parent 5331b32 commit 440dae6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion worldeditadditions_core/utils/notify/notify.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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 not check_clear_suppressed(name, suppress) then return false end
suppress[name] = func
suppress[name]()
local success, result = suppress[name]()
suppress[name] = nil
return success, result
end

--- WorldEdit compatibility
Expand Down

0 comments on commit 440dae6

Please sign in to comment.