diff --git a/mods/bg_api/leveled_node.lua b/mods/bg_api/leveled_node.lua index 83cb8ec..c8f092d 100644 --- a/mods/bg_api/leveled_node.lua +++ b/mods/bg_api/leveled_node.lua @@ -1,7 +1,7 @@ local function is_same_kind (pos, kindname) local node = minetest.get_node(pos) local node_kindname = minetest.registered_items[node.name].kindname - return kindname == node_kindname + return kindname and node_kindname and kindname == node_kindname end function blockgame.check_for_stacking (pos)