diff --git a/depends.txt b/depends.txt index 420562c..590a9bd 100644 --- a/depends.txt +++ b/depends.txt @@ -1 +1,2 @@ -farming \ No newline at end of file +farming +hbhunger? diff --git a/farming.lua b/farming.lua index eca99d7..d4883f2 100644 --- a/farming.lua +++ b/farming.lua @@ -45,6 +45,12 @@ for nome,valor in pairs(tb_alimenticios) do minetest.override_item(nome, {on_use = minetest.item_eat(valor[1], valor[2])}) end +if hbhunger.register_food then + for nome,valor in pairs(tb_alimenticios) do + hbhunger.register_food(nome, valor[1], valor[2]) + end +end + -- Remoção de algumas receitas para desativar minetest.clear_craft({output = 'farming:carrot_gold'}) -- Cenoura Dourada