forked from MineClone5/MineClone5
Fixes #583 - Eating chorus plant restores 4 HP
This commit is contained in:
parent
5f1973aecd
commit
89ba84a456
|
@ -501,7 +501,7 @@ local eat_chorus_fruit = function(itemstack, player, pointed_thing)
|
|||
end
|
||||
end
|
||||
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()
|
||||
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)
|
||||
|
|
Loading…
Reference in New Issue