mirror of
https://github.com/minefaco/stripped_tree.git
synced 2024-10-02 07:43:09 +02:00
Merge pull request #14 from mightyjoe781/main
fixed nil value concatenating and accessing registered node table
This commit is contained in:
commit
b3af420d2d
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