Skip to content

Commit

Permalink
hotfix 3
Browse files Browse the repository at this point in the history
  • Loading branch information
qeffects committed Feb 23, 2020
1 parent ec2394b commit ed3a695
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions core/element.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit ed3a695

Please sign in to comment.