mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-12-23 16:39:33 +01:00
Fix player eating item when pointing a mob
This commit is contained in:
parent
855fd6b279
commit
0d7e957694
1 changed files with 4 additions and 0 deletions
|
@ -18,6 +18,10 @@ minetest.do_item_eat = function(hp_change, replace_with_item, itemstack, user, p
|
|||
end
|
||||
end
|
||||
end
|
||||
-- Also don't eat when pointing object (it could be an animal)
|
||||
if pointed_thing.type == "object" then
|
||||
return itemstack
|
||||
end
|
||||
|
||||
local old_itemstack = itemstack
|
||||
|
||||
|
|
Loading…
Reference in a new issue