From 709d5a5263d27abba7b7670a92c3fe0ad9095973 Mon Sep 17 00:00:00 2001 From: Alexander Weber Date: Sun, 16 Apr 2017 00:46:32 +0200 Subject: [PATCH] filter: some small filter adjustments --- libs/filter.lua | 7 ++++++- txt/classify_description_de.lua | 2 +- txt/classify_description_en.lua | 2 +- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/libs/filter.lua b/libs/filter.lua index b620acd..78bffb5 100644 --- a/libs/filter.lua +++ b/libs/filter.lua @@ -118,8 +118,13 @@ filter.register_filter({ return ret end, get_keyword = function(self, group) + -- hide groups + if group.name == "group:not_in_creative_inventory" then + return + end + local keyword = self:_get_keyword(group) - if txt_usage and keyword then + if txt_usage and keyword and txt[group.name] then return keyword.." "..group.group_desc else return keyword diff --git a/txt/classify_description_de.lua b/txt/classify_description_de.lua index e024b86..51454f4 100644 --- a/txt/classify_description_de.lua +++ b/txt/classify_description_de.lua @@ -56,7 +56,7 @@ return { ["group:coal"] = {label = "Kohle" }, ["group:water_bucket"] = {label = "Eimer"}, ["group:dye"] = {label = "Farbstoff"}, - ["group:food"] = {label = "Nahrung (Gruppe)"}, + ["group:food"] = {label = "Nahrung"}, ["group:stair"] = {label = "Treppe"}, ["group:door"] = {label = "Tür"}, diff --git a/txt/classify_description_en.lua b/txt/classify_description_en.lua index 68b716f..2439fc7 100644 --- a/txt/classify_description_en.lua +++ b/txt/classify_description_en.lua @@ -56,7 +56,7 @@ return { ["group:coal"] = {label = "Coal" }, ["group:water_bucket"] = {label = "Bucket"}, ["group:dye"] = {label = "Dye"}, - ["group:food"] = {label = "Food group"}, + ["group:food"] = {label = "Food"}, ["group:stair"] = {label = "Stair"}, ["group:door"] = {label = "Door"},