Fix player health restoring after eating a soup
This commit is contained in:
parent
f12482d96c
commit
a8fc274d47
@ -39,7 +39,7 @@ minetest.register_craftitem("xdecor:bowl_soup", {
|
|||||||
on_use = function(itemstack, user, _)
|
on_use = function(itemstack, user, _)
|
||||||
local inv = user:get_inventory()
|
local inv = user:get_inventory()
|
||||||
itemstack:replace("xdecor:bowl 1")
|
itemstack:replace("xdecor:bowl 1")
|
||||||
minetest.item_eat(30)
|
user:set_hp(20)
|
||||||
return itemstack
|
return itemstack
|
||||||
end
|
end
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user