Skip to content

Commit 86af86b

Browse files
author
ShinkoNet
authored
Update to 1.12
renamed getPropertyNames to getPropertyKeys, because im a nazi
1 parent 0cde2e3 commit 86af86b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/main/scala/com/github/soniex2/notebetter/note/InstrumentBlock.scala

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,12 @@ class InstrumentBlock(pred: List[(TreeMap[String, TreeSet[String]], NoteBetterIn
2424

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

31+
3132
override def toString = {
3233
pred.toString()
3334
}
34-
}
35+
}

0 commit comments

Comments
 (0)