From 6be6a2c09d173626a247edad46d240c18dc1297a Mon Sep 17 00:00:00 2001 From: Zeffuro Date: Sun, 28 Dec 2025 21:04:09 +0100 Subject: [PATCH] Cleanup --- AetherBags/Addons/AddonInventoryWindow.cs | 1 - .../Nodes/Inventory/InventoryCategoryNode.cs | 15 ++++++++++----- 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/AetherBags/Addons/AddonInventoryWindow.cs b/AetherBags/Addons/AddonInventoryWindow.cs index 30b63fa..b56d771 100644 --- a/AetherBags/Addons/AddonInventoryWindow.cs +++ b/AetherBags/Addons/AddonInventoryWindow.cs @@ -152,7 +152,6 @@ public class AddonInventoryWindow : NativeAddon { base.OnRequestedUpdate(addon, numberArrayData, stringArrayData); - InventoryContextState.RefreshMaps(); InventoryState.RefreshFromGame(); RefreshCategoriesCore(autosize: true); diff --git a/AetherBags/Nodes/Inventory/InventoryCategoryNode.cs b/AetherBags/Nodes/Inventory/InventoryCategoryNode.cs index fe19027..3606974 100644 --- a/AetherBags/Nodes/Inventory/InventoryCategoryNode.cs +++ b/AetherBags/Nodes/Inventory/InventoryCategoryNode.cs @@ -226,7 +226,7 @@ public class InventoryCategoryNode : SimpleComponentNode IsDraggable = !data.IsSlotBlocked, Payload = new DragDropPayload { - Type = DragDropType.Inventory_Item, + Type = DragDropType.Item, Int1 = location.Container, Int2 = location.Slot, }, @@ -251,7 +251,6 @@ public class InventoryCategoryNode : SimpleComponentNode private void OnPayloadAccepted(DragDropNode _, DragDropPayload payload, ItemInfo targetItemInfo) { - Services.Logger.Debug($"[OnPayload] Received payload of type {payload.Type}, Int1={payload.Int1}, Int2={payload.Int2}, RefIndex={payload.ReferenceIndex}, Text={payload.Text}"); if (!payload.IsValidInventoryPayload) return; @@ -263,10 +262,16 @@ public class InventoryCategoryNode : SimpleComponentNode return; } - InventoryLocation targetLocation = new InventoryLocation(targetItemInfo.Item.Container, (ushort)targetItemInfo.Item.Slot); + InventoryLocation targetLocation = new InventoryLocation( + targetItemInfo.Item.Container, + (ushort)targetItemInfo.Item.Slot + ); - Services.Logger.Debug($"[OnPayload] Moving {sourceLocation.ToString()} -> {targetLocation.ToString()}"); + Services.Logger.Debug($"[OnPayload] Moving {sourceLocation} -> {targetLocation}"); - InventoryMoveHelper.MoveItem(sourceLocation.Container, sourceLocation.Slot, targetLocation.Container, targetLocation.Slot); + InventoryMoveHelper.MoveItem( + sourceLocation.Container, sourceLocation.Slot, + targetLocation.Container, targetLocation.Slot + ); } } \ No newline at end of file