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:
parent
4f89893c29
commit
c2dd8a61cd
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue