From a0eb4803d19092d138161f87571a525113c2582b Mon Sep 17 00:00:00 2001 From: Jean-Patrick Guerrero Date: Sat, 26 Jun 2021 07:08:14 +0200 Subject: [PATCH] Another fix --- etc/compress.lua | 88 ------------------------------------------------ init.lua | 1 + 2 files changed, 1 insertion(+), 88 deletions(-) diff --git a/etc/compress.lua b/etc/compress.lua index df30580..0206623 100644 --- a/etc/compress.lua +++ b/etc/compress.lua @@ -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 diff --git a/init.lua b/init.lua index 32dc2f5..d559bd2 100644 --- a/init.lua +++ b/init.lua @@ -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