adjust classify: zero-value is not a group
This commit is contained in:
parent
7dea037d57
commit
f5d18982fb
@ -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 = "??" },
|
||||
|
@ -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 = "??" },
|
||||
|
@ -68,7 +68,10 @@ filter.register_filter({
|
||||
else
|
||||
mv = true
|
||||
end
|
||||
ret[mk] = mv
|
||||
|
||||
if v ~= 0 then
|
||||
ret[mk] = mv
|
||||
end
|
||||
end
|
||||
return ret
|
||||
end,
|
||||
|
Loading…
x
Reference in New Issue
Block a user