Fix arrow_signs warnings

This commit is contained in:
Wuzzy 2021-02-03 20:32:18 +01:00
parent c37921d250
commit 1312b1caca

View File

@ -23,9 +23,9 @@ arrow_signs={}
print((sender:get_player_name() or "").." wrote \""..fields.text.. print((sender:get_player_name() or "").." wrote \""..fields.text..
"\" to sign at "..minetest.pos_to_string(pos)) "\" to sign at "..minetest.pos_to_string(pos))
meta:set_string("text", fields.text) meta:set_string("text", fields.text)
text = arrow_signs:create_lines(fields.text) local text = arrow_signs:create_lines(fields.text)
meta:set_string("infotext", text) meta:set_string("infotext", text)
i=0 local i=0
for wort in text:gfind("\n") do for wort in text:gfind("\n") do
i=i+1 i=i+1
end end