Remove a few useless parentheses in ButtonImpl.kt
This commit is contained in:
parent
3b6cd7a385
commit
7355635daa
|
@ -41,13 +41,13 @@ sealed class ButtonImpl: ColoredElement(0.0, 0.0, 73, 8, opacity = 0.60F) {
|
|||
@JvmStatic
|
||||
fun initButtons() = addButtons(
|
||||
*Snowy.annotatedButtons.mapNotNull {
|
||||
((try {
|
||||
try {
|
||||
it.getConstructor().newInstance()
|
||||
} catch (e: NoSuchMethodException) {
|
||||
try {
|
||||
it.getDeclaredField("INSTANCE").get(null)
|
||||
} catch (e: NoSuchFieldException) {}
|
||||
}) as? ButtonImpl)
|
||||
} as? ButtonImpl
|
||||
}.filterNot {
|
||||
(it.info.parent == Category.RISKY) && !riskyCheats
|
||||
}.plus(Configuration.foundMacros).toTypedArray()
|
||||
|
|
Loading…
Reference in New Issue