From 440dae68a11d1c3dcfaca7d5443fcb3a2009124c Mon Sep 17 00:00:00 2001 From: VorTechnix <45538536+VorTechnix@users.noreply.github.com> Date: Wed, 16 Oct 2024 19:13:22 -0700 Subject: [PATCH] Notify.suppress_for_function now actually returns results! --- worldeditadditions_core/utils/notify/notify.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/worldeditadditions_core/utils/notify/notify.lua b/worldeditadditions_core/utils/notify/notify.lua index 6d63024..8a8ed0d 100644 --- a/worldeditadditions_core/utils/notify/notify.lua +++ b/worldeditadditions_core/utils/notify/notify.lua @@ -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