mirror of
https://github.com/Ottermandias/Glamourer.git
synced 2025-12-13 12:14:18 +01:00
Update some obsoletes.
This commit is contained in:
parent
e93c3b7bb8
commit
3dee511b9a
3 changed files with 3 additions and 3 deletions
|
|
@ -23,7 +23,7 @@ public unsafe class InventoryPanel : IGameDataDrawer
|
|||
ImGuiUtil.CopyOnClickSelectable($"0x{(ulong)inventory:X}");
|
||||
|
||||
var equip = inventory->GetInventoryContainer(InventoryType.EquippedItems);
|
||||
if (equip == null || equip->Loaded == 0)
|
||||
if (equip == null || equip->IsLoaded)
|
||||
return;
|
||||
|
||||
ImGuiUtil.CopyOnClickSelectable($"0x{(ulong)equip:X}");
|
||||
|
|
|
|||
|
|
@ -182,7 +182,7 @@ public sealed unsafe class InventoryService : IDisposable, IRequiredService
|
|||
|
||||
// Invoked after calling Original, so the item is already moved.
|
||||
var inventory = manager->GetInventoryContainer(targetContainer);
|
||||
if (inventory == null || inventory->Loaded == 0 || inventory->Size <= targetSlot)
|
||||
if (inventory == null || inventory->IsLoaded || inventory->Size <= targetSlot)
|
||||
return false;
|
||||
|
||||
var item = inventory->GetInventorySlot((int)targetSlot);
|
||||
|
|
|
|||
|
|
@ -168,7 +168,7 @@ public class ItemUnlockManager : ISavable, IDisposable, IReadOnlyDictionary<Item
|
|||
{
|
||||
var type = ScannableInventories[_currentInventory];
|
||||
var container = inventoryManager->GetInventoryContainer(type);
|
||||
if (container != null && container->Loaded != 0 && _currentInventoryIndex < container->Size)
|
||||
if (container != null && container->IsLoaded && _currentInventoryIndex < container->Size)
|
||||
{
|
||||
Glamourer.Log.Excessive($"[UnlockScanner] Scanning {_currentInventory} {type} {_currentInventoryIndex}/{container->Size}.");
|
||||
var item = container->GetInventorySlot(_currentInventoryIndex++);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue