forked from mtcontrib/signs_lib
commit
217ea08cac
2
init.lua
2
init.lua
@ -413,7 +413,7 @@ end
|
|||||||
local function set_obj_text(obj, text, new, pos)
|
local function set_obj_text(obj, text, new, pos)
|
||||||
local split = new and split_lines_and_words or split_lines_and_words_old
|
local split = new and split_lines_and_words or split_lines_and_words_old
|
||||||
local n = minetest.registered_nodes[minetest.get_node(pos).name]
|
local n = minetest.registered_nodes[minetest.get_node(pos).name]
|
||||||
local text_scale = n.text_scale or DEFAULT_TEXT_SCALE
|
local text_scale = (n and n.text_scale) or DEFAULT_TEXT_SCALE
|
||||||
obj:set_properties({
|
obj:set_properties({
|
||||||
textures={make_sign_texture(split(text), pos)},
|
textures={make_sign_texture(split(text), pos)},
|
||||||
visual_size = text_scale,
|
visual_size = text_scale,
|
||||||
|
Loading…
Reference in New Issue
Block a user