Drop food eating limits in Creative Mode
This commit is contained in:
parent
d9b6bae320
commit
9ed83bd196
5 changed files with 19 additions and 11 deletions
|
@ -339,7 +339,7 @@ local eat_chorus_fruit = function(itemstack, player, pointed_thing)
|
|||
local count = itemstack:get_count()
|
||||
local new_itemstack = minetest.do_item_eat(0, 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" 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)
|
||||
end
|
||||
return new_itemstack
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue