mirror of
https://github.com/ComfyFactory/ComfyFactorio.git
synced 2025-03-19 21:10:19 +02:00
fix gui issue
This commit is contained in:
parent
98d29e73da
commit
5a6539b6db
@ -333,7 +333,7 @@ Gui.on_click(
|
|||||||
end
|
end
|
||||||
|
|
||||||
local player = event.player
|
local player = event.player
|
||||||
if not player or not player.valid or not player.character then
|
if not player or not player.valid then
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -373,13 +373,14 @@ Gui.on_click(
|
|||||||
return
|
return
|
||||||
end
|
end
|
||||||
local player = event.player
|
local player = event.player
|
||||||
if not player or not player.valid or not player.character then
|
if not player or not player.valid then
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
if game.tick > this.difficulty_poll_closing_timeout then
|
if game.tick > this.difficulty_poll_closing_timeout then
|
||||||
clear_main_frame(player)
|
clear_main_frame(player)
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
local screen = player.gui.center
|
local screen = player.gui.center
|
||||||
if screen[main_frame_name] and screen[main_frame_name].valid then
|
if screen[main_frame_name] and screen[main_frame_name].valid then
|
||||||
clear_main_frame(player)
|
clear_main_frame(player)
|
||||||
@ -397,7 +398,7 @@ Gui.on_click(
|
|||||||
return
|
return
|
||||||
end
|
end
|
||||||
local player = event.player
|
local player = event.player
|
||||||
if not player or not player.valid or not player.character then
|
if not player or not player.valid then
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
clear_main_frame(player)
|
clear_main_frame(player)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user