mirror of
https://github.com/HybridDog/nether-pack.git
synced 2024-11-13 05:50:20 +01:00
```
Use:
local tab = minetest.wrap_text(content, guide_size.fx, true)
Needs 3rd argument 'true' to ensure 'tab' is a table.
See 649eef9e4f/builtin/common/misc_helpers.lua (L311)
```
This commit is contained in:
parent
d32ede7e8a
commit
acdf694356
|
@ -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.."]"
|
||||
|
|
Loading…
Reference in New Issue
Block a user