From 203c42098bdc7c16a735af7ab12b048c93687b60 Mon Sep 17 00:00:00 2001 From: Cooldude2606 Date: Mon, 1 Jan 2018 13:42:27 +0000 Subject: [PATCH] Added game.get_player as an option to left/update --- ExpCore/GuiParts/left.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ExpCore/GuiParts/left.lua b/ExpCore/GuiParts/left.lua index 98605098..7d55afdb 100644 --- a/ExpCore/GuiParts/left.lua +++ b/ExpCore/GuiParts/left.lua @@ -33,7 +33,7 @@ end -- @param[opt] players the player to update for, if not given all players are updated, can be one player function left.update(frame,players) if not Server or not Server._thread then - local players = is_type(players,'table') and #players > 0 and {unpack(players)} or is_type(players,'table') and {players} or game.connected_players + local players = is_type(players,'table') and #players > 0 and {unpack(players)} or is_type(players,'table') and {players} or Game.get_player(players) and {Game.get_player(players)} or game.connected_players for _,player in pairs(players) do local frames = Gui._get_data('left') or {} if frame then frames = {[frame]=frames[frame]} or {} end @@ -47,7 +47,7 @@ function left.update(frame,players) else local frames = Gui._get_data('left') or {} if frame then frames = {[frame]=frames[frame]} or {} end - local players = is_type(players,'table') and #players > 0 and {unpack(players)} or is_type(players,'table') and {players} or game.connected_players + local players = is_type(players,'table') and #players > 0 and {unpack(players)} or is_type(players,'table') and {players} or Game.get_player(players) and {Game.get_player(players)} or game.connected_players Server.new_thread{ data={players=players,frames=frames} }:on_event('tick',function(thread)