fixed bad crafting guide groups
This commit is contained in:
parent
b8738c1e32
commit
22bd63c070
@ -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)
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user