diff --git a/core/element.lua b/core/element.lua index d00b3f2..8af9e59 100644 --- a/core/element.lua +++ b/core/element.lua @@ -334,6 +334,7 @@ local insert = table.insert ---@param x number ---@param y number function element:draw(x, y) + self.settings.remove =false if not self.view.lock then if x then self.view.x = x end if y then self.view.y = y end diff --git a/init.lua b/init.lua index eee7e65..2e4c9d1 100644 --- a/init.lua +++ b/init.lua @@ -45,7 +45,7 @@ function helium.update(dt) if remove then helium.utils.ArrayRemove(helium.elementBuffer, function(t, i) --returns false or (true if nil) - return (not t[i].settings.remove) + return (t[i].settings.remove) end) end