Merge pull request #14 from mightyjoe781/main

fixed nil value concatenating and accessing registered node table
This commit is contained in:
minefaco 2022-02-12 12:13:58 -05:00 committed by GitHub
commit b3af420d2d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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