mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-31 21:03:43 +01:00
Improvements (#903)
This commit is contained in:
parent
e9cd7e0273
commit
716736f022
55 changed files with 1809 additions and 872 deletions
|
|
@ -46,9 +46,9 @@ namespace Dalamud.Game.ClientState.Fates
|
|||
/// <returns>True or false.</returns>
|
||||
public static bool IsValid(Fate fate)
|
||||
{
|
||||
var clientState = Service<ClientState>.Get();
|
||||
var clientState = Service<ClientState>.GetNullable();
|
||||
|
||||
if (fate == null)
|
||||
if (fate == null || clientState == null)
|
||||
return false;
|
||||
|
||||
if (clientState.LocalContentId == 0)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue