correct use of S() func

This commit is contained in:
2024-03-27 21:47:06 +01:00
parent c8be496afe
commit 1e28f1c565
3 changed files with 20 additions and 20 deletions

View File

@@ -647,7 +647,7 @@ end
-- \returns nil
industrialtest.api.registerResourceDust=function(name,displayName,resources,color,registerMaceratorRecipe)
minetest.register_craftitem("industrialtest:"..name.."_dust",{
description=S(displayName.." Dust"),
description=S("@1 Dust", displayName),
inventory_image="industrialtest_dust.png",
color=color
})
@@ -693,7 +693,7 @@ industrialtest.api.registerStorageCell=function(name,displayName,node,modname)
modname="industrialtest"
end
minetest.register_craftitem("industrialtest:"..name.."_cell",{
description=S(displayName.." Cell"),
description=S("@1 Cell", displayName),
inventory_image=modname.."_"..name.."_cell.png",
on_place=function(itemstack,user,pointed)
if pointed.type~="node" or not user or not user:is_player() then