Use more null checks in ButtonImpl.kt

This commit is contained in:
Username404 2021-05-28 17:44:30 +02:00
parent 686959a9aa
commit e533e92198
Signed by: Username404-59
GPG Key ID: 7AB361FBB257A5D1
1 changed files with 2 additions and 2 deletions

View File

@ -28,12 +28,12 @@ sealed class ButtonImpl: ColoredElement(0.0, 0.0, 73, 8, opacity = 0.60F) {
} }
} }
} }
box.name!!.key == impl.info.parent.translationKey box.name?.key ?: box.name.toString() == impl.info.parent.translationKey
} }
} }
}.entries.forEach { entry -> }.entries.forEach { entry ->
with(entry) { with(entry) {
entry.value.forEach { value.forEach {
key?.buttons!!.add(it) key?.buttons!!.add(it)
} }
} }