mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-12-24 17:09:32 +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
|
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
|
local old_itemstack = itemstack
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue