Skip to content

Commit

Permalink
switched to unpack method
Browse files Browse the repository at this point in the history
  • Loading branch information
VorTechnix committed Oct 17, 2024
1 parent c86319d commit 63bdbdf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions worldeditadditions_core/utils/notify/notify.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 63bdbdf

Please sign in to comment.