Solve #182 add table pool for events

This commit is contained in:
Insality
2022-04-05 18:57:40 +03:00
parent 2779f9cf7a
commit dff522fbaa
24 changed files with 244 additions and 6 deletions

View File

@@ -289,6 +289,7 @@ function DruidInstance.remove(self, component)
local all_components = self.components_all
for i = #all_components, 1, -1 do
if all_components[i] == component then
component:on_internal_remove()
if component.on_remove then
component:on_remove()
end