1
0
mirror of https://github.com/ComfyFactory/ComfyFactorio.git synced 2025-01-08 00:39:30 +02:00

Merge branch 'develop' into Balance-changes

This commit is contained in:
Gerkiz 2021-12-06 16:52:39 +01:00 committed by GitHub
commit cb0c4a02a1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -60,7 +60,9 @@ function Public.comfy_panel_clear_gui(player)
child.destroy()
end
for _, child in pairs(player.gui.screen.children) do
child.destroy()
if not screen_elements[child.name] then
child.destroy()
end
end
end