1
0
Fork 0

Fixes #583 - Eating chorus plant restores 4 HP

objects
Jared Moody 2019-12-09 08:24:38 +01:00 committed by Wuzzy
parent 5f1973aecd
commit 89ba84a456
1 changed files with 1 additions and 1 deletions

View File

@ -501,7 +501,7 @@ local eat_chorus_fruit = function(itemstack, player, pointed_thing)
end end
end end
local count = itemstack:get_count() local count = itemstack:get_count()
local new_itemstack = minetest.do_item_eat(0, nil, itemstack, player, pointed_thing) local new_itemstack = minetest.do_item_eat(4, nil, itemstack, player, pointed_thing)
local new_count = new_itemstack:get_count() local new_count = new_itemstack:get_count()
if count ~= new_count or new_itemstack:get_name() ~= "mcl_end:chorus_fruit" or (minetest.settings:get_bool("creative_mode") == true) then if count ~= new_count or new_itemstack:get_name() ~= "mcl_end:chorus_fruit" or (minetest.settings:get_bool("creative_mode") == true) then
random_teleport(player) random_teleport(player)