From ed3a695c518d4d084b08e4e797c3e9fdec86f3e2 Mon Sep 17 00:00:00 2001 From: qfx Date: Sun, 23 Feb 2020 03:31:53 +0200 Subject: [PATCH] hotfix 3 --- core/element.lua | 1 + init.lua | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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