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
|
@JvmStatic
|
||||||
fun initButtons() = addButtons(
|
fun initButtons() = addButtons(
|
||||||
*Snowy.annotatedButtons.mapNotNull {
|
*Snowy.annotatedButtons.mapNotNull {
|
||||||
((try {
|
try {
|
||||||
it.getConstructor().newInstance()
|
it.getConstructor().newInstance()
|
||||||
} catch (e: NoSuchMethodException) {
|
} catch (e: NoSuchMethodException) {
|
||||||
try {
|
try {
|
||||||
it.getDeclaredField("INSTANCE").get(null)
|
it.getDeclaredField("INSTANCE").get(null)
|
||||||
} catch (e: NoSuchFieldException) {}
|
} catch (e: NoSuchFieldException) {}
|
||||||
}) as? ButtonImpl)
|
} as? ButtonImpl
|
||||||
}.filterNot {
|
}.filterNot {
|
||||||
(it.info.parent == Category.RISKY) && !riskyCheats
|
(it.info.parent == Category.RISKY) && !riskyCheats
|
||||||
}.plus(Configuration.foundMacros).toTypedArray()
|
}.plus(Configuration.foundMacros).toTypedArray()
|
||||||
|
|
Loading…
Reference in New Issue