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