fixed nil value concatenating and accessing registered node table

This commit is contained in:
smk 2022-01-29 13:15:46 +05:30
parent 615d1e758c
commit 1a1b2c335c

@ -48,6 +48,9 @@ if stripped_tree.ENABLE_CHISEL then
local node = minetest.get_node(pos).name
local mod_name, node_name = unpack(node:split(":"))
-- before concatenating check for nil
if not mod_name then return end
if not node_name then return end
local has_stripped = minetest.registered_nodes[mod_name..":".."stripped_"..node_name]
if has_stripped then