From a098155b0f81c204ea6241e2054c92ddf4215092 Mon Sep 17 00:00:00 2001 From: Gabriel Kaszewski Date: Thu, 29 May 2025 01:03:49 +0200 Subject: [PATCH] Fix collectable fade away logic to ensure proper cleanup after sound effect finishes --- scripts/components/collectable.gd | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/components/collectable.gd b/scripts/components/collectable.gd index 522af68..4fdcb25 100644 --- a/scripts/components/collectable.gd +++ b/scripts/components/collectable.gd @@ -33,4 +33,5 @@ func _on_area2d_body_entered(body: Node2D) -> void: if not has_fade_away: if sfx: await sfx.finished - root.queue_free() + + root.queue_free()