refactor(lib): utilize spawn event

This commit is contained in:
2025-03-20 18:34:14 -04:00
parent c8aec76075
commit 2814f4f43a
2 changed files with 7 additions and 1 deletions

View File

@@ -111,6 +111,10 @@ function attack_entities(target_kind, minimum)
end
function check_food(hunger)
if not hunger then
hunger = client.hunger
end
if hunger.food >= 20 then
return
end