diff --git a/init.lua b/init.lua index 353cf9b..185727d 100644 --- a/init.lua +++ b/init.lua @@ -69,10 +69,16 @@ minetest.register_entity("wield3d:wield_entity", { if p1 and p2 then if vector.equals(p1, p2) then local stack = player:get_wielded_item() - local item = stack:get_name() + local item = stack:get_name() or "" if item == self.item then return end + if minetest.get_modpath("wieldview") then + local def = minetest.registered_items[item] or {} + if def.inventory_image ~= "" then + item = "" + end + end self.item = item if item == "" then item = "wield3d:hand"