bug arreglado

This commit is contained in:
Diego De la Viuda Llorente committed 2026-10-20 17:20:42 +02:00
1 parent 84c148f1ab
commit 82c7963767
4 files changed
+76 -6

No files matched your search

+2 -1
View File
@@ -48,5 +48,6 @@ func is_on_floor() -> bool:
func _on_body_entered(body: Node2D) -> void:
if body.is_in_group("player"):
picked_up.emit(self, pickup_data)
if pickup_data != null:
picked_up.emit(self, pickup_data)
queue_free()