mirror of
https://github.com/minetest-mods/craftguide.git
synced 2024-12-14 18:50:17 +01:00
Fix replacement labels again
This commit is contained in:
parent
c0823faad3
commit
361c64e51c
6
init.lua
6
init.lua
@ -156,6 +156,7 @@ local group_names = {
|
|||||||
coal = S"Any coal",
|
coal = S"Any coal",
|
||||||
dye = S"Any dye",
|
dye = S"Any dye",
|
||||||
flower = S"Any flower",
|
flower = S"Any flower",
|
||||||
|
glass = S"Any glass",
|
||||||
mushroom = S"Any mushroom",
|
mushroom = S"Any mushroom",
|
||||||
sand = S"Any sand",
|
sand = S"Any sand",
|
||||||
stick = S"Any stick",
|
stick = S"Any stick",
|
||||||
@ -1031,10 +1032,6 @@ local function get_grid_fs(lang_code, fs, rcp, spacing)
|
|||||||
if replacement[1] == name then
|
if replacement[1] == name then
|
||||||
replace = replace or {}
|
replace = replace or {}
|
||||||
|
|
||||||
if j == 1 then
|
|
||||||
label = fmt("%s%s\nR", label ~= "" and "\n" or "", label)
|
|
||||||
end
|
|
||||||
|
|
||||||
local added
|
local added
|
||||||
|
|
||||||
for _, v in ipairs(replace) do
|
for _, v in ipairs(replace) do
|
||||||
@ -1045,6 +1042,7 @@ local function get_grid_fs(lang_code, fs, rcp, spacing)
|
|||||||
end
|
end
|
||||||
|
|
||||||
if not added then
|
if not added then
|
||||||
|
label = fmt("%s%s\nR", label ~= "" and "\n" or "", label)
|
||||||
replace[#replace + 1] = replacement[2]
|
replace[#replace + 1] = replacement[2]
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user