From a7da195aa1c8b6784e00b38275ae4f7f451cb893 Mon Sep 17 00:00:00 2001 From: DS Date: Wed, 5 Jul 2017 18:38:38 +0200 Subject: [PATCH] fix a crash caused by the none existing minetest.splittext function It was replaced with minetest.wrap_text. Hopefully that won't make problems. --- nether/guide.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nether/guide.lua b/nether/guide.lua index a4a160e..529495e 100644 --- a/nether/guide.lua +++ b/nether/guide.lua @@ -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.."]"