Quote horn sound for constistency

This commit is contained in:
Y. Wang 2023-01-01 11:37:20 +01:00
parent c3f9da6f24
commit 78509e9fb0

View File

@ -148,7 +148,7 @@ local function doc_register_wagon(itemname)
if type(hornsound) == "table" then
hornsound = hornsound.name
end
table.insert(desctext, S("Horn sound: @1", hornsound and hornsound ~= "" and hornsound or S("Undefined")))
table.insert(desctext, S("Horn sound: @1", hornsound and hornsound ~= "" and quotestring(hornsound) or S("Undefined")))
table.insert(desctext, S("Mesh: @1", quotestring(prototype.mesh)))
addlist(desctext, prototype.textures, S("Textures:"), S("No textures"), false, function(_, v) return quotestring(v) end)