mirror of
https://github.com/minetest-mods/craftguide.git
synced 2024-12-14 02:30:17 +01:00
Fix stereotypes
This commit is contained in:
parent
da186f63a4
commit
9fa0c44cd7
9
init.lua
9
init.lua
@ -148,14 +148,18 @@ craftguide.group_stereotypes = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
local group_names = {
|
local group_names = {
|
||||||
|
carpet = S"Any carpet",
|
||||||
coal = S"Any coal",
|
coal = S"Any coal",
|
||||||
wool = S"Any wool",
|
dye = S"Any dye",
|
||||||
wood = S"Any wood planks",
|
flower = S"Any flower",
|
||||||
|
mushroom = S"Any mushroom",
|
||||||
sand = S"Any sand",
|
sand = S"Any sand",
|
||||||
stick = S"Any stick",
|
stick = S"Any stick",
|
||||||
stone = S"Any kind of stone block",
|
stone = S"Any kind of stone block",
|
||||||
tree = S"Any tree",
|
tree = S"Any tree",
|
||||||
vessel = S"Any vessel",
|
vessel = S"Any vessel",
|
||||||
|
wool = S"Any wool",
|
||||||
|
wood = S"Any wood planks",
|
||||||
|
|
||||||
["color_red,flower"] = S"Any red flower",
|
["color_red,flower"] = S"Any red flower",
|
||||||
["color_blue,flower"] = S"Any blue flower",
|
["color_blue,flower"] = S"Any blue flower",
|
||||||
@ -727,6 +731,7 @@ local function groups_to_items(groups, get_all)
|
|||||||
local def_gr = "default:" .. group
|
local def_gr = "default:" .. group
|
||||||
local stereotypes = craftguide.group_stereotypes
|
local stereotypes = craftguide.group_stereotypes
|
||||||
local stereotype = stereotypes and stereotypes[group]
|
local stereotype = stereotypes and stereotypes[group]
|
||||||
|
stereotype = reg_items[stereotype] and stereotype
|
||||||
|
|
||||||
if stereotype then
|
if stereotype then
|
||||||
return stereotype
|
return stereotype
|
||||||
|
Loading…
Reference in New Issue
Block a user