adjust classify: zero-value is not a group

This commit is contained in:
Alexander Weber 2017-03-17 20:34:06 +01:00
parent 7dea037d57
commit f5d18982fb
3 changed files with 4 additions and 5 deletions

View File

@ -8,7 +8,6 @@ return {
["group:physics:speed"] = { label = "Geschwindigkeit" },
["group:physics:gravity"] = { label = "Erdanziehung" },
["group:armor:heal"] = { label = "Heilen" },
["group:armor:heal:0"] = { label = false },
["group:armor:water"] = { label = "Wasserschutz" },
["group:armor:fire"] = { label = "Feuerschutz" },
["group:armor:radiation"] = { label = "Schutz gegen Radioaktivität" },
@ -85,7 +84,6 @@ return {
["tool"] = {label = false},
["tool:full_punch_interval"] = { label = "Verwendungsinterval" },
["tool:max_drop_level"] = { label = "Max drop Level" },
["tool:max_drop_level:0"] = { label = false },
-- ["tool:groupcaps:fleshy"] = { label = "??" },
-- ["tool:groupcaps:snappy"] = { label = "??" },
-- ["tool:groupcaps:choppy"] = { label = "??" },

View File

@ -8,7 +8,6 @@ return {
["group:physics:speed"] = { label = "Walking speed" },
["group:physics:gravity"] = { label = "Gravity" },
["group:armor:heal"] = { label = "Heal" },
["group:armor:heal:0"] = { label = false },
["group:armor:water"] = { label = "Water protection" },
["group:armor:fire"] = { label = "Fire protection" },
["group:armor:radiation"] = { label = "Radiation protection" },
@ -85,7 +84,6 @@ return {
["tool"] = {label = false},
["tool:full_punch_interval"] = { label = "Punch interval" },
["tool:max_drop_level"] = { label = "Max drop level" },
["tool:max_drop_level:0"] = { label = false },
-- ["tool:groupcaps:fleshy"] = { label = "??" },
-- ["tool:groupcaps:snappy"] = { label = "??" },
-- ["tool:groupcaps:choppy"] = { label = "??" },

View File

@ -68,8 +68,11 @@ filter.register_filter({
else
mv = true
end
if v ~= 0 then
ret[mk] = mv
end
end
return ret
end,
})