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, _)
|
||||
local inv = user:get_inventory()
|
||||
itemstack:replace("xdecor:bowl 1")
|
||||
minetest.item_eat(30)
|
||||
user:set_hp(20)
|
||||
return itemstack
|
||||
end
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user