fixed bad crafting guide groups

This commit is contained in:
kaadmy 2015-09-01 08:50:08 -07:00
parent b8738c1e32
commit 22bd63c070
2 changed files with 2 additions and 2 deletions

View File

@ -137,7 +137,7 @@ local function load_recipes()
for itemname, itemdef in pairs(minetest.registered_items) do
local recipes = minetest.get_all_craft_recipes(itemname)
if recipes ~= nil and itemname ~= "" then
if recipes ~= nil and itemname ~= "" and minetest.get_item_group(itemname, "not_in_craftingguide") ~= 1 then
-- print(dump(recipes))
craftingguide.items[itemname] = recipes
table.insert(craftingguide.itemlist, itemname)

View File

@ -177,7 +177,7 @@ function default.ui.item_group(x, y, group, name)
local itemname = ""
for itemn, itemdef in pairs(minetest.registered_items) do
if minetest.get_item_group(itemn, group) ~= 0 then
if minetest.get_item_group(itemn, group) ~= 0 and minetest.get_item_group(itemn, "not_in_craftingguide") ~= 1 then
itemname = itemn
end
end