From a8fc274d47f83a5d7af051f83a59332fade35c52 Mon Sep 17 00:00:00 2001 From: kilbith Date: Sun, 3 Jan 2016 19:59:00 +0100 Subject: [PATCH] Fix player health restoring after eating a soup --- crafts.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crafts.lua b/crafts.lua index 027165d..cbfdb7a 100644 --- a/crafts.lua +++ b/crafts.lua @@ -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 })