mirror of
https://github.com/xivdev/Penumbra.git
synced 2025-12-12 18:27:24 +01:00
Check clientstate validity on every player watcher iteration.
This commit is contained in:
parent
556bff4e46
commit
eea7cba805
1 changed files with 5 additions and 0 deletions
|
|
@ -214,6 +214,11 @@ namespace Penumbra.PlayerWatch
|
|||
|
||||
for( var i = 0; i < ActorsPerFrame; ++i )
|
||||
{
|
||||
if( _pi.ClientState.LocalPlayer == null )
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
_frameTicker = _frameTicker < actors.Length - 2
|
||||
? _frameTicker + 2
|
||||
: 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue