forked from VoxeLibre/VoxeLibre
Hide repair recipes if disable_repair=1 is set
This commit is contained in:
parent
68c373d2b8
commit
56ff8fbad5
|
@ -26,6 +26,7 @@ local get_recipes = function(query_item)
|
||||||
if recipes == nil then
|
if recipes == nil then
|
||||||
recipes = {}
|
recipes = {}
|
||||||
end
|
end
|
||||||
|
if minetest.get_item_group(query_item, "disable_repair") ~= 1 then
|
||||||
table.insert(recipes, {
|
table.insert(recipes, {
|
||||||
type = "normal",
|
type = "normal",
|
||||||
width = 0,
|
width = 0,
|
||||||
|
@ -36,6 +37,7 @@ local get_recipes = function(query_item)
|
||||||
})
|
})
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
end
|
||||||
return recipes
|
return recipes
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue