1
Fork 0
mirror of https://github.com/Steffo99/hella-farm.git synced 2024-11-24 09:04:22 +00:00

Fix TrackerEdible still looking for tag instead of diet

This commit is contained in:
Steffo 2024-04-19 01:48:11 +02:00
parent 4f89893c29
commit c2dd8a61cd
Signed by: steffo
GPG key ID: 5ADA3868646C3FC0

View file

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