mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-12-23 08:29:34 +01:00
Add durability tooltip to translation template
This commit is contained in:
parent
df0c1f1dd1
commit
5bb57a81ad
2 changed files with 2 additions and 1 deletions
|
@ -45,3 +45,4 @@ Mining durability: @1=
|
|||
Block breaking strength: @1=
|
||||
@1 uses=
|
||||
Unlimited uses=
|
||||
Durability: @1=
|
||||
|
|
|
@ -109,6 +109,6 @@ end)
|
|||
|
||||
tt.register_snippet(function(itemstring, _, itemstack)
|
||||
if itemstring:sub(1, 23) == "mcl_fishing:fishing_rod" or itemstring:sub(1, 12) == "mcl_bows:bow" then
|
||||
return S("Durability: @1 uses", mcl_util.calculate_durability(itemstack or ItemStack(itemstring)))
|
||||
return S("Durability: @1", S("@1 uses", mcl_util.calculate_durability(itemstack or ItemStack(itemstring))))
|
||||
end
|
||||
end)
|
||||
|
|
Loading…
Reference in a new issue