From 8bf932bf0b2184c1dc11241bb9c84d6c4e420293 Mon Sep 17 00:00:00 2001 From: Indrajith K L Date: Thu, 14 Apr 2022 15:38:09 +0530 Subject: Fixes an issue with Apples & Tilemap (lol) --- collectables/Apple.gd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'collectables') 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() -- cgit v1.2.3