Compare commits

..

3 Commits

2 changed files with 1 additions and 7 deletions

View File

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

View File

@ -61,11 +61,9 @@ function update_listeners()
message = function() message = function()
info("bot successfully logged in!") info("bot successfully logged in!")
end, end,
},
spawn = {
eat = function() eat = function()
sleep(5000) sleep(5000)
check_food() check_food(client.hunger)
end, end,
}, },
death = { death = {