chain evaluation returns true in case of nothing to eval, also fixed stat layer comparison

This commit is contained in:
Héctor Giménez
2023-03-13 21:49:46 +09:00
parent a1a86b9e05
commit bc4402a6a1
3 changed files with 7 additions and 3 deletions

View File

@@ -61,7 +61,7 @@ func checkStat(i data.Item, cmp nip.Comparable) bool {
return true
}
return st[2] == itemStat.Layer
return st[1] == itemStat.Layer
}
func checkProperty(i data.Item, prop nip.Comparable) bool {