forked from VoxeLibre/VoxeLibre
Only update tooltips when picking up items with durability
This commit is contained in:
parent
28e1d00830
commit
aeae975f3d
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue