mirror of
https://git.minetest.land/MineClone2/MineClone2.git
synced 2024-12-26 03:07:32 +01:00
Fix player eating item when pointing a mob
This commit is contained in:
parent
855fd6b279
commit
0d7e957694
@ -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 New Issue
Block a user