mirror of
https://github.com/Caraxi/mare.client.git
synced 2025-12-12 19:47:21 +01:00
fix some shit maybe
This commit is contained in:
parent
db5df98d80
commit
a909319ae3
4 changed files with 32 additions and 32 deletions
|
|
@ -99,7 +99,7 @@ public sealed class GameObjectHandler : DisposableMediatorSubscriberBase
|
|||
nint curPtr = IntPtr.Zero;
|
||||
try
|
||||
{
|
||||
curPtr = _getAddress.Invoke();
|
||||
curPtr = CurrentAddress;
|
||||
|
||||
if (curPtr == IntPtr.Zero) return true;
|
||||
|
||||
|
|
@ -136,7 +136,7 @@ public sealed class GameObjectHandler : DisposableMediatorSubscriberBase
|
|||
{
|
||||
if (_haltProcessing) return;
|
||||
|
||||
var curPtr = _getAddress.Invoke();
|
||||
var curPtr = CurrentAddress;
|
||||
bool drawObjDiff = false;
|
||||
try
|
||||
{
|
||||
|
|
|
|||
|
|
@ -530,7 +530,7 @@ public sealed class CachedPlayer : DisposableMediatorSubscriberBase
|
|||
missingPluginsForData.Add("Honorific");
|
||||
warning.ShownHonorificWarning = true;
|
||||
}
|
||||
|
||||
|
||||
if (missingPluginsForData.Any())
|
||||
{
|
||||
Mediator.Publish(new NotificationMessage("Missing plugins for " + PlayerName,
|
||||
|
|
@ -570,7 +570,6 @@ public sealed class CachedPlayer : DisposableMediatorSubscriberBase
|
|||
CheckForNameAndThrow(tempHandler, name);
|
||||
Logger.LogDebug("[{applicationId}] Restoring Honorific for {alias}/{name}", applicationId, OnlineUser.User.AliasOrUID, name);
|
||||
await _ipcManager.HonorificClearTitle(address).ConfigureAwait(false);
|
||||
|
||||
}
|
||||
else if (objectKind == ObjectKind.MinionOrMount)
|
||||
{
|
||||
|
|
@ -583,7 +582,7 @@ public sealed class CachedPlayer : DisposableMediatorSubscriberBase
|
|||
}
|
||||
else if (objectKind == ObjectKind.Pet)
|
||||
{
|
||||
var pet = await _dalamudUtil.GetPet(address);
|
||||
var pet = await _dalamudUtil.GetPet(address).ConfigureAwait(false);
|
||||
if (pet != IntPtr.Zero)
|
||||
{
|
||||
using GameObjectHandler tempHandler = _gameObjectHandlerFactory(ObjectKind.Pet, () => pet, false);
|
||||
|
|
@ -592,7 +591,7 @@ public sealed class CachedPlayer : DisposableMediatorSubscriberBase
|
|||
}
|
||||
else if (objectKind == ObjectKind.Companion)
|
||||
{
|
||||
var companion = await _dalamudUtil.GetCompanion(address);
|
||||
var companion = await _dalamudUtil.GetCompanion(address).ConfigureAwait(false);
|
||||
if (companion != IntPtr.Zero)
|
||||
{
|
||||
using GameObjectHandler tempHandler = _gameObjectHandlerFactory(ObjectKind.Pet, () => companion, false);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue