From 2b987a98bef63356490bc7464feb9e7b76e2c632 Mon Sep 17 00:00:00 2001 From: Gerkiz Date: Thu, 23 Apr 2020 20:12:51 +0200 Subject: [PATCH] minor fix --- comfy_panel/poll.lua | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/comfy_panel/poll.lua b/comfy_panel/poll.lua index dd18e873..75819f73 100644 --- a/comfy_panel/poll.lua +++ b/comfy_panel/poll.lua @@ -5,8 +5,6 @@ local Game = require 'utils.game' local Server = require 'utils.server' local Tabs = require 'comfy_panel.main' local session = require 'utils.session_data' -local m_gui = require "mod-gui" -local mod = m_gui.get_frame_flow local insert = table.insert @@ -814,8 +812,8 @@ local function player_joined(event) return end - if mod(player)[main_button_name] ~= nil then - local frame = mod(player)[main_frame_name] + if player.gui.top[main_button_name] ~= nil then + local frame = player.gui.top[main_frame_name] if frame and frame.valid then local data = Gui.get_data(frame) update_poll_viewer(data)