From acdf6943563b333674bbf294b277930646890ec9 Mon Sep 17 00:00:00 2001 From: Megaf Date: Wed, 20 Dec 2017 14:12:12 -0200 Subject: [PATCH] Fixes https://github.com/HybridDog/nether-pack/issues/6 ``` Use: local tab = minetest.wrap_text(content, guide_size.fx, true) Needs 3rd argument 'true' to ensure 'tab' is a table. See https://github.com/minetest/minetest/blob/649eef9e4fe4ef6a59ca9f59c900c6e0900cfb3a/builtin/common/misc_helpers.lua#L311 ``` --- nether/guide.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nether/guide.lua b/nether/guide.lua index 7af5748..6eee44e 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.wrap_text(content, guide_size.fx) + local tab = minetest.wrap_text(content, guide_size.fx, true) local l = guide_size.cx for _,str in ipairs(tab) do form = form.."label["..guide_size.cx ..","..guide_size.cy+y..";"..str.."]"