diff --git a/src/craftitems.lua b/src/craftitems.lua index 70ea5d5fdefcd388e58050a871db7ac41472d5cd..1c28d4362ace6fcde78e0826927d138daae39844 100644 --- a/src/craftitems.lua +++ b/src/craftitems.lua @@ -14,6 +14,9 @@ minetest.register_craftitem("xdecor:bowl_soup", { itemstack:replace("xdecor:bowl 1") if rawget(_G, "hunger") then minetest.item_eat(20) + elseif rawget(_G, "hbhunger") then + hbhunger.hunger[user:get_player_name()] = 30 + hbhunger.set_hunger_raw(user) else user:set_hp(20) end