Merge pull request #2466 from Haselnussbomber/playerstate-ctor-fix
Some checks failed
Build Dalamud / Build on Windows (push) Waiting to run
Build Dalamud / Check API Compatibility (push) Blocked by required conditions
Build Dalamud / Deploy dalamud-distrib staging (push) Blocked by required conditions
Rollup changes to next version / check (api14) (push) Failing after 4s
Tag Build / Tag Build (push) Successful in 2s

Add empty ServiceConstructor to PlayerState
This commit is contained in:
goat 2025-11-17 21:07:10 +01:00 committed by GitHub
commit 1822ef1808
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -23,6 +23,11 @@ namespace Dalamud.Game.Player;
[ResolveVia<IPlayerState>] [ResolveVia<IPlayerState>]
internal unsafe class PlayerState : IServiceType, IPlayerState internal unsafe class PlayerState : IServiceType, IPlayerState
{ {
[ServiceManager.ServiceConstructor]
private PlayerState()
{
}
/// <inheritdoc/> /// <inheritdoc/>
public bool IsLoaded => CSPlayerState.Instance()->IsLoaded; public bool IsLoaded => CSPlayerState.Instance()->IsLoaded;