1
0
mirror of https://github.com/HybridDog/nether-pack.git synced 2024-12-26 02:30:24 +01:00

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

View File

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