1
0
mirror of https://github.com/minetest/minetest_game.git synced 2025-06-29 13:20:25 +02:00

Add missing infotext to nodes (#2477)

This commit is contained in:
An0n3m0us
2019-09-14 19:30:26 +01:00
committed by sfan5
parent 888383a812
commit 1f7ea89cb6
4 changed files with 35 additions and 19 deletions

View File

@ -2602,7 +2602,12 @@ local function register_sign(material, desc, def)
text .. "\" to sign at " .. minetest.pos_to_string(pos))
local meta = minetest.get_meta(pos)
meta:set_string("text", text)
meta:set_string("infotext", '"' .. text .. '"')
if #text > 0 then
meta:set_string("infotext", '"' .. text .. '"')
else
meta:set_string("infotext", '')
end
end,
})
end