diff options
author | tenplus1 <tenplus1@users.noreply.github.com> | 2017-07-19 19:46:54 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-07-19 19:46:54 +0100 |
commit | cba3e847d991ac24f0cd4b985cabba3088f89975 (patch) | |
tree | e13a44f86bc1f568b7e9256d6529f1e007caaadb | |
parent | 3e001599a65160cc50dd4a49211f2376521576dd (diff) |
add nil check
add nil check to fix this error: https://github.com/minetest-mods/signs_lib/issues/18
-rw-r--r-- | init.lua | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -413,7 +413,7 @@ end local function set_obj_text(obj, text, new, pos) 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 text_scale = n.text_scale or DEFAULT_TEXT_SCALE + local text_scale = (n and n.text_scale) or DEFAULT_TEXT_SCALE obj:set_properties({ textures={make_sign_texture(split(text), pos)}, visual_size = text_scale, |