1
0
mirror of https://github.com/Refactorio/RedMew.git synced 2024-12-12 10:04:40 +02:00

fixed bug

This commit is contained in:
grilledham 2018-05-18 01:14:09 +01:00
parent 90e44ae4fe
commit 975c7ba7eb

View File

@ -194,12 +194,17 @@ local function toggle_main_frame(player)
end
local function gui_click(event)
local element = event.element
if not element or not element.valid then
return
end
local player = game.players[event.player_index]
if not player or not player.valid then
return
end
local name = event.element.name
local name = element.name
if name == main_button_name then
toggle_main_frame(player)
elseif name == flip_h_button_name then