Skip to content
Snippets Groups Projects
Commit 3d9305a9 authored by JPG's avatar JPG
Browse files

Cooking: Add support for hbhunger's satiation

parent c50521b3
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment