Fix player health restoring after eating a soup

master
kilbith 2016-01-03 19:59:00 +01:00
parent f12482d96c
commit a8fc274d47
1 changed files with 1 additions and 1 deletions

View File

@ -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
})