bail out of make_sign_texture is the node is unknown

This commit is contained in:
Vanessa Dannenberg 2019-09-18 14:08:17 -04:00
parent bbd580acb1
commit a907f9535c

View File

@ -419,6 +419,7 @@ end
local function make_sign_texture(lines, pos) local function make_sign_texture(lines, pos)
local node = minetest.get_node(pos) local node = minetest.get_node(pos)
local def = minetest.registered_items[node.name] local def = minetest.registered_items[node.name]
if not def then return end
local font_size local font_size
local line_width local line_width