1
0
mirror of https://github.com/ComfyFactory/ComfyFactorio.git synced 2025-02-09 13:37:02 +02:00

minor fix

This commit is contained in:
Gerkiz 2021-12-06 16:51:22 +01:00
parent 9c76fb02bb
commit 8645fab495

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