use wield image if inventory image not found

This commit is contained in:
tenplus1 2022-10-30 08:08:26 +00:00
parent 96570a558e
commit dbb5be1e31

View File

@ -555,6 +555,8 @@ and minetest.settings:get_bool("enable_stamina") ~= false then
-- particle effect when eating
local texture = minetest.registered_items[itemname].inventory_image
texture = texture or minetest.registered_items[itemname].wield_image
head_particle(user, texture)
-- if player drinks milk then stop poison and being drunk