From dbb5be1e31b0004c632f057dcb3e17f07b03237c Mon Sep 17 00:00:00 2001 From: tenplus1 Date: Sun, 30 Oct 2022 08:08:26 +0000 Subject: [PATCH] use wield image if inventory image not found --- init.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/init.lua b/init.lua index f5d3611..7df7f29 100644 --- a/init.lua +++ b/init.lua @@ -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