mirror of
https://github.com/Refactorio/RedMew.git
synced 2025-03-03 14:53:01 +02:00
fixed poll checkbox spam
This commit is contained in:
parent
371cdc51ae
commit
3fd916bc56
3
poll.lua
3
poll.lua
@ -270,8 +270,7 @@ local function on_gui_click(event)
|
||||
end
|
||||
|
||||
if (name == "auto_show_polls_checkbox") then
|
||||
global.autoshow_polls_for_player[player.name] = not global.autoshow_polls_for_player[player.name]
|
||||
game.print(global.autoshow_polls_for_player[player.name])
|
||||
global.autoshow_polls_for_player[player.name] = not global.autoshow_polls_for_player[player.name]
|
||||
end
|
||||
|
||||
if global.poll_voted[event.player_index] == nil then
|
||||
|
Loading…
x
Reference in New Issue
Block a user