Skip to content

Commit

Permalink
Update to 1.12
Browse files Browse the repository at this point in the history
renamed getPropertyNames to getPropertyKeys, because im a nazi
  • Loading branch information
ShinkoNet authored Sep 19, 2017
1 parent 0cde2e3 commit 86af86b
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,12 @@ class InstrumentBlock(pred: List[(TreeMap[String, TreeSet[String]], NoteBetterIn

def get(state: IBlockState): Option[NoteBetterInstrument] = {
_predicates.find((v) => {
state.getPropertyNames.asScala.flatMap((p) => v._1.get(p.getName).map((p, _))).forall((x) => x._2.contains(state.getValue(x._1).toString))
state.getPropertyKeys.asScala.flatMap((p) => v._1.get(p.getName).map((p, _))).forall((x) => x._2.contains(state.getValue(x._1).toString))
}).map(_._2)
}


override def toString = {
pred.toString()
}
}
}

0 comments on commit 86af86b

Please # to comment.