Another fix

This commit is contained in:
Jean-Patrick Guerrero 2021-06-26 07:08:14 +02:00
parent ac4a7352fd
commit a0eb4803d1
2 changed files with 1 additions and 88 deletions

View File

@ -26,81 +26,11 @@ local colors = {
}
local to_compress = {
["bucket:bucket_empty"] = {
replace = "empty",
by = {"lava", "river_water", "water"}
},
["butterflies:butterfly_white"] = {
replace = "white",
by = {"red", "violet"}
},
["default:wood"] = {
replace = "wood",
by = wood_types,
},
["default:tree"] = {
replace = "tree",
by = {"acacia_tree", "aspen_tree", "jungletree", "pine_tree"},
},
["default:grass_1"] = {
replace = "grass_1",
by = {"dry_grass_1", "junglegrass", "marram_grass_1", "fern_1"},
},
["carts:rail"] = {
replace = "rail",
by = {"brakerail", "powerrail"},
},
["default:sapling"] = {
replace = "sapling",
by = {
"acacia_bush_sapling",
"acacia_sapling",
"aspen_sapling",
"blueberry_bush_sapling",
"bush_sapling",
"emergent_jungle_sapling",
"junglesapling",
"pine_bush_sapling",
"pine_sapling"
}
},
["default:gold_lump"] = {
replace = "gold",
by = {"clay", "coal", "copper", "iron", "tin"}
},
["default:gold_ingot"] = {
replace = "gold_ingot",
by = {"bronze_ingot", "copper_ingot", "steel_ingot", "tin_ingot", "clay_brick"}
},
["default:leaves"] = {
replace = "leaves",
by = {
"acacia_bush_leaves",
"acacia_leaves",
"aspen_leaves",
"blueberry_bush_leaves",
"blueberry_bush_leaves_with_berries",
"bush_leaves",
"jungleleaves",
"pine_bush_needles",
"pine_needles",
},
},
["default:stone_with_diamond"] = {
replace = "diamond",
by = {"coal", "copper", "gold", "iron", "mese", "tin"},
},
["default:fence_wood"] = {
replace = "wood",
by = wood_types,
@ -126,24 +56,6 @@ local to_compress = {
by = wood_types,
},
["doors:door_wood"] = {
replace = "wood",
by = {"glass", "obsidian_glass", "steel"}
},
["flowers:geranium"] = {
replace = "geranium",
by = {
"chrysanthemum_green",
"dandelion_white",
"dandelion_yellow",
"rose",
"tulip",
"tulip_black",
"viola",
}
},
["wool:white"] = {
replace = "white",
by = colors

View File

@ -3059,6 +3059,7 @@ core.register_on_player_receive_fields(function(player, formname, fields)
set_tab(player, tabname)
break
elseif sub(f, 1, 5) == "itab_" then
data.pagenum = 1
data.current_itab = tonum(f:sub(-1))
sort_by_category(data)
end