mirror of
https://git.minetest.land/MineClone2/MineClone2.git
synced 2024-11-27 05:13:48 +01:00
Hide repair recipes if disable_repair=1 is set
parent
68c373d2b8
commit
56ff8fbad5
@ -26,14 +26,16 @@ local get_recipes = function(query_item)
|
|||||||
if recipes == nil then
|
if recipes == nil then
|
||||||
recipes = {}
|
recipes = {}
|
||||||
end
|
end
|
||||||
table.insert(recipes, {
|
if minetest.get_item_group(query_item, "disable_repair") ~= 1 then
|
||||||
type = "normal",
|
table.insert(recipes, {
|
||||||
width = 0,
|
type = "normal",
|
||||||
items = { [1] = query_item, [2] = query_item },
|
width = 0,
|
||||||
output = query_item,
|
items = { [1] = query_item, [2] = query_item },
|
||||||
-- Special marker for repairing recipes
|
output = query_item,
|
||||||
_is_toolrepair = true,
|
-- Special marker for repairing recipes
|
||||||
})
|
_is_toolrepair = true,
|
||||||
|
})
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
return recipes
|
return recipes
|
||||||
|
Loading…
Reference in New Issue
Block a user