1
Fork 0
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:
Steffo 2023-01-08 22:40:22 +01:00
parent 7d4afce24d
commit 18c44c2438
Signed by: steffo
GPG key ID: 6965406171929D01

View file

@ -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()