1
0
mirror of https://github.com/mt-mods/homedecor_modpack.git synced 2024-12-22 16:10:18 +01:00

Use "|" for linebreaks in infotext

This commit is contained in:
ShadowNinja 2013-04-05 19:04:05 -04:00
parent 479032c135
commit 7d0a3f9056

View File

@ -70,7 +70,7 @@ end
homedecor_update_sign = function(pos, fields)
local meta = minetest.env:get_meta(pos)
if fields then
meta:set_string("infotext", fields.text)
meta:set_string("infotext", table.concat(homedecor_create_lines(fields.text), "\n"))
meta:set_string("text", fields.text)
end
local text = meta:get_string("text")