fix redraw after gpose

This commit is contained in:
rootdarkarchon
2023-03-27 12:04:45 +02:00
parent 98d552fa40
commit 0f623510b5
3 changed files with 5 additions and 6 deletions

View File

@@ -109,7 +109,7 @@ public class DalamudUtilService : IHostedService
{
var mgr = CharacterManager.Instance();
playerPointer ??= PlayerPointer;
if(playerPointer == IntPtr.Zero) return IntPtr.Zero;
if (playerPointer == IntPtr.Zero) return IntPtr.Zero;
return (IntPtr)mgr->LookupPetByOwnerObject((BattleChara*)playerPointer);
}
@@ -183,7 +183,7 @@ public class DalamudUtilService : IHostedService
public async Task WaitWhileCharacterIsDrawing(ILogger logger, GameObjectHandler handler, Guid redrawId, int timeOut = 5000, CancellationToken? ct = null)
{
if (!_clientState.IsLoggedIn || handler.Address == IntPtr.Zero) return;
if (!_clientState.IsLoggedIn || handler.CurrentAddress == IntPtr.Zero) return;
logger.LogTrace("[{redrawId}] Starting wait for {handler} to draw", redrawId, handler);