forked from mtcontrib/nether-pack
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:
parent
afb77f0a1d
commit
a7da195aa1
|
@ -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.."]"
|
||||
|
|
Loading…
Reference in New Issue
Block a user