From c2dd8a61cd714d48fa2a204dacac9fa9d864b6c1 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Fri, 19 Apr 2024 01:48:11 +0200 Subject: [PATCH] Fix `TrackerEdible` still looking for `tag` instead of `diet` --- behaviours/tracker_edible.gd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/behaviours/tracker_edible.gd b/behaviours/tracker_edible.gd index da5ece4..810feb2 100644 --- a/behaviours/tracker_edible.gd +++ b/behaviours/tracker_edible.gd @@ -10,6 +10,6 @@ class_name EdibleTracker func check_diet_then_track(body: Node2D) -> void: var edibles: Array = body.find_children("*", "Edible", false, false) for edible in edibles: - if edible.tag in acceptable_diets: + if edible.diet in acceptable_diets: track(body) break