diff --git a/Inventory.gd b/Inventory.gd index 173d9ac..05bd475 100644 --- a/Inventory.gd +++ b/Inventory.gd @@ -70,7 +70,10 @@ func _gui_input(event): clickedSlot = slot; if holdingItem == null and clickedSlot == null: - return + return; + + if clickedSlot == null: + return; if holdingItem != null and clickedSlot != null: if clickedSlot.item != null: diff --git a/Inventory.tscn b/Inventory.tscn index 7267882..1a495ca 100644 --- a/Inventory.tscn +++ b/Inventory.tscn @@ -32,7 +32,7 @@ margin_right = 154.0 margin_bottom = 193.0 rect_pivot_offset = Vector2( 0, 0 ) rect_clip_content = false -mouse_filter = 2 +mouse_filter = 1 mouse_default_cursor_shape = 0 size_flags_horizontal = 1 size_flags_vertical = 1