0
0
Fork 0

Fix player eating item when pointing a mob

This commit is contained in:
Wuzzy 2020-12-05 01:56:19 +01:00
parent 855fd6b279
commit 0d7e957694
1 changed files with 4 additions and 0 deletions

View File

@ -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