Skip to content

Commit

Permalink
Welp, I thought AgentLobby does not exist when player is logged in
Browse files Browse the repository at this point in the history
  • Loading branch information
RisaDev committed Sep 30, 2024
1 parent d700285 commit 3c73266
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions CustomizePlus.GameData/Services/ObjectManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,11 @@
using Dalamud.Plugin;
using Dalamud.Plugin.Services;
using FFXIVClientStructs.FFXIV.Client.Game.Control;
using FFXIVClientStructs.FFXIV.Client.Game.Object;
using FFXIVClientStructs.FFXIV.Client.UI.Agent;
using OtterGui.Log;
using Penumbra.GameData.Actors;
using Penumbra.GameData.Enums;
using Penumbra.GameData.Interop;
using Penumbra.GameData.Structs;
using Penumbra.String;

namespace CustomizePlus.GameData.Services;
Expand Down Expand Up @@ -218,6 +216,9 @@ public bool GetName(string lowerName, out Actor actor)
//c+ custom
private unsafe bool AddLobbyCharacters()
{
if (clientState.IsLoggedIn)
return false;

var agent = AgentLobby.Instance();
if (agent == null)
return false;
Expand Down

0 comments on commit 3c73266

Please sign in to comment.