@@ -52,9 +52,9 @@ end return {} end local modofname = function(id) - local item = minetest.registered_nodes[id] + local item = minetest.registered_items[id] if item == nil or item.mod_origin == '??' or not item.mod_origin then local sep = string.find(id,':') if sep == nil then return nil end -- uh oh return string.sub(id, 1, sep - 1) @@ -75,10 +75,10 @@ local props = minetest.registered_items[name]._sorcery local module = modofname(name) - return not (excluded - or sorcery.lib.tbl.has(constants.blacklist_mods,module) + return not ( + sorcery.lib.tbl.has(constants.blacklist_mods,module) or (props and props.recipe and props.recipe.secret) or (restrict and ( (restrict.pred and restrict.pred { mod = module, item = name, props = props