fix a crash caused by the none existing minetest.splittext function

It was replaced with minetest.wrap_text. Hopefully that won't make problems.
This commit is contained in:
DS 2017-07-05 18:38:38 +02:00 committed by GitHub
parent afb77f0a1d
commit a7da195aa1
1 changed files with 1 additions and 1 deletions

View File

@ -315,7 +315,7 @@ for n,data in ipairs(guide_infos) do
elseif typ == "x" then
x = math.max(x, content)
elseif typ == "text" then
local tab = minetest.splittext(content, guide_size.fx)
local tab = minetest.wrap_text(content, guide_size.fx)
local l = guide_size.cx
for _,str in ipairs(tab) do
form = form.."label["..guide_size.cx ..","..guide_size.cy+y..";"..str.."]"