aboutsummaryrefslogtreecommitdiff
path: root/collectables/Apple.gd
diff options
context:
space:
mode:
Diffstat (limited to 'collectables/Apple.gd')
-rw-r--r--collectables/Apple.gd2
1 files changed, 1 insertions, 1 deletions
diff --git a/collectables/Apple.gd b/collectables/Apple.gd
index 909eaf2..e95ef61 100644
--- a/collectables/Apple.gd
+++ b/collectables/Apple.gd
@@ -6,6 +6,6 @@ func _ready():
func _on_Area2D_body_entered(body):
- if body.entity_type=="PLAYER":
+ if (body.name=="Player"):
body.health += health
queue_free()