mirror of
https://git.minetest.land/Mineclonia/Mineclonia.git
synced 2024-11-05 01:05:05 +00:00
Fixes #583 - Eating chorus plant restores 4 HP
This commit is contained in:
parent
5f1973aecd
commit
89ba84a456
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue