From 63bdbdfac9d5cbee10869e77374321d1cf6e146f Mon Sep 17 00:00:00 2001 From: VorTechnix <45538536+VorTechnix@users.noreply.github.com> Date: Wed, 16 Oct 2024 19:53:10 -0700 Subject: [PATCH] switched to unpack method --- worldeditadditions_core/utils/notify/notify.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/worldeditadditions_core/utils/notify/notify.lua b/worldeditadditions_core/utils/notify/notify.lua index aa28e2a..373058f 100644 --- a/worldeditadditions_core/utils/notify/notify.lua +++ b/worldeditadditions_core/utils/notify/notify.lua @@ -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 not check_clear_suppressed(name, suppress) then return false end suppress[name] = func - local success, result = suppress[name]() + local result_table = { suppress[name]() } suppress[name] = nil - return success, result + return wea_c.table.unpack(result_table) end --- WorldEdit compatibility