filter: some small filter adjustments

This commit is contained in:
Alexander Weber 2017-04-16 00:46:32 +02:00
parent d30e34e49c
commit 709d5a5263
3 changed files with 8 additions and 3 deletions

View File

@ -118,8 +118,13 @@ filter.register_filter({
return ret return ret
end, end,
get_keyword = function(self, group) get_keyword = function(self, group)
-- hide groups
if group.name == "group:not_in_creative_inventory" then
return
end
local keyword = self:_get_keyword(group) 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 return keyword.." "..group.group_desc
else else
return keyword return keyword

View File

@ -56,7 +56,7 @@ return {
["group:coal"] = {label = "Kohle" }, ["group:coal"] = {label = "Kohle" },
["group:water_bucket"] = {label = "Eimer"}, ["group:water_bucket"] = {label = "Eimer"},
["group:dye"] = {label = "Farbstoff"}, ["group:dye"] = {label = "Farbstoff"},
["group:food"] = {label = "Nahrung (Gruppe)"}, ["group:food"] = {label = "Nahrung"},
["group:stair"] = {label = "Treppe"}, ["group:stair"] = {label = "Treppe"},
["group:door"] = {label = "Tür"}, ["group:door"] = {label = "Tür"},

View File

@ -56,7 +56,7 @@ return {
["group:coal"] = {label = "Coal" }, ["group:coal"] = {label = "Coal" },
["group:water_bucket"] = {label = "Bucket"}, ["group:water_bucket"] = {label = "Bucket"},
["group:dye"] = {label = "Dye"}, ["group:dye"] = {label = "Dye"},
["group:food"] = {label = "Food group"}, ["group:food"] = {label = "Food"},
["group:stair"] = {label = "Stair"}, ["group:stair"] = {label = "Stair"},
["group:door"] = {label = "Door"}, ["group:door"] = {label = "Door"},