]> git.lizzy.rs Git - xdecor.git/commitdiff
Fix player health restoring after eating a soup
authorkilbith <jeanpatrick.guerrero@gmail.com>
Sun, 3 Jan 2016 18:59:00 +0000 (19:59 +0100)
committerkilbith <jeanpatrick.guerrero@gmail.com>
Sun, 3 Jan 2016 18:59:00 +0000 (19:59 +0100)
crafts.lua

index 027165d1c15f3f69853acb9a90cc044a3494a911..cbfdb7abf5a4752a60028b8579d93279d6868275 100644 (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
 })