mirror of
https://github.com/minefaco/stripped_tree.git
synced 2024-06-30 21:20:26 +02:00
fixed nil value concatenating and accessing registered node table
This commit is contained in:
parent
615d1e758c
commit
1a1b2c335c
3
init.lua
3
init.lua
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user