mirror of
https://github.com/Steffo99/pineapple-surf.git
synced 2024-11-21 23:34:21 +00:00
Prevent collect being called multiple times
This commit is contained in:
parent
7d4afce24d
commit
18c44c2438
1 changed files with 1 additions and 1 deletions
|
@ -20,6 +20,6 @@ func collect():
|
|||
|
||||
|
||||
func _on_collect_area_body_entered(body: Node3D):
|
||||
if body is Player:
|
||||
if body is Player and not is_collected:
|
||||
collect()
|
||||
|
||||
|
|
Loading…
Reference in a new issue