mirror of
https://github.com/goatcorp/Dalamud.git
synced 2026-01-03 14:23:40 +01:00
fix: only fire Login event when PC GO is available
This commit is contained in:
parent
e3cbc4dc8c
commit
fc9c94299f
1 changed files with 2 additions and 2 deletions
|
|
@ -63,7 +63,7 @@ public sealed class ClientState : IDisposable, IServiceType
|
|||
public event EventHandler<ushort> TerritoryChanged;
|
||||
|
||||
/// <summary>
|
||||
/// Event that fires when a character is logging in.
|
||||
/// Event that fires when a character is logging in, and the local character object is available.
|
||||
/// </summary>
|
||||
public event EventHandler Login;
|
||||
|
||||
|
|
@ -167,7 +167,7 @@ public sealed class ClientState : IDisposable, IServiceType
|
|||
if (condition == null || gameGui == null || data == null)
|
||||
return;
|
||||
|
||||
if (condition.Any() && this.lastConditionNone == true)
|
||||
if (condition.Any() && this.lastConditionNone == true && this.LocalPlayer != null)
|
||||
{
|
||||
Log.Debug("Is login");
|
||||
this.lastConditionNone = false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue