From 7bf40a72d35fa74a4a875aa8da9535834eeb60cd Mon Sep 17 00:00:00 2001 From: Damien Ostler Date: Sun, 14 Jan 2024 15:53:34 -0500 Subject: [PATCH] feat: got the grid snap working , can drag and release around a single grid inventory --- Code/UI/Inventory.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Code/UI/Inventory.cs b/Code/UI/Inventory.cs index c3b2e08..ed454d9 100644 --- a/Code/UI/Inventory.cs +++ b/Code/UI/Inventory.cs @@ -119,7 +119,7 @@ public partial class Inventory: Control Grab(cursor_pos); } - if (Input.IsActionJustReleased(InventoryDragActionName) && _inventoryItemDragged == null) + if (Input.IsActionJustReleased(InventoryDragActionName) && _inventoryItemDragged != null) { Release(cursor_pos); }