From 3dfb62f81e4c1963a83c6e7438e35f0b1b13ea1b Mon Sep 17 00:00:00 2001 From: Joao Pasqualini Costa Date: Wed, 15 Nov 2023 10:09:46 -0300 Subject: [PATCH] Draw order option --- modules/game_attachedeffects/lib.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/modules/game_attachedeffects/lib.lua b/modules/game_attachedeffects/lib.lua index 93902d09f2..049fd97730 100644 --- a/modules/game_attachedeffects/lib.lua +++ b/modules/game_attachedeffects/lib.lua @@ -33,6 +33,10 @@ local executeConfig = function(attachedEffect, config) }) end + if config.drawOrder then + attachedEffect:setDrawOrder(config.drawOrder) + end + if config.duration ~= nil and config.duration > 0 then attachedEffect:setDuration(config.duration) end