Only update tooltips when picking up items with durability

This commit is contained in:
teknomunk 2024-04-27 10:21:58 +00:00
parent 28e1d00830
commit aeae975f3d
1 changed files with 3 additions and 1 deletions

View File

@ -435,7 +435,9 @@ function minetest.node_dig(pos, node, digger)
end
end
end
tt.reload_itemstack_description(wielded) -- update tooltip
if mcl_util.calculate_durability(wielded) > 0 then
tt.reload_itemstack_description(wielded) -- update tooltip
end
digger:set_wielded_item(wielded)
end