Add correct static grid node spawn

This commit is contained in:
Insality
2020-09-28 01:42:49 +03:00
parent 40af3f6181
commit c0bd3e599b
2 changed files with 9 additions and 5 deletions

View File

@@ -67,7 +67,9 @@ local function init_static_grid(self)
add_node(self, i)
end
self.druid:new_button("button_add/button", add_node)
self.druid:new_button("button_add/button", function()
add_node(self)
end)
self.druid:new_button("button_clear/button", clear_nodes)
local remove_button = self.druid:new_button("button_remove/button", remove_node)