Don't break if not CoD.LobbyMember

This commit is contained in:
WantedDV 2023-04-18 09:30:52 -02:30
parent 564cf28df4
commit bf30653fc2

View File

@ -2,12 +2,9 @@ if Engine.GetCurrentMap() ~= "core_frontend" then
return return
end end
if not CoD.LobbyMember then if CoD.LobbyMember then
return local oldLobbyMember = CoD.LobbyMember.new
end function CoD.LobbyMember.new(menu, controller)
local oldLobbyMember = CoD.LobbyMember.new
function CoD.LobbyMember.new(menu, controller)
local self = oldLobbyMember(menu, controller) local self = oldLobbyMember(menu, controller)
-- Hide the playlist count text -- Hide the playlist count text
@ -19,6 +16,7 @@ function CoD.LobbyMember.new(menu, controller)
end end
return self return self
end
end end
function IsLobbyStatusVisible() function IsLobbyStatusVisible()