mirror of
https://github.com/HybridDog/nether-pack.git
synced 2024-12-25 18:20:23 +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:
parent
afb77f0a1d
commit
a7da195aa1
@ -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.."]"
|
||||||
|
Loading…
Reference in New Issue
Block a user