Use the isNotEmpty method in ClickBox.kt

This commit is contained in:
Username404-59 2021-05-04 18:39:55 +02:00
parent e7a3fb592e
commit 06c4dea9be
Signed by: Username404-59
GPG Key ID: 7AB361FBB257A5D1
1 changed files with 1 additions and 1 deletions

View File

@ -48,7 +48,7 @@ class ClickBox(
with(buttonsProgressBar) { with(buttonsProgressBar) {
if ((height != 8 || (supplied < 0)) && ((height != originalHeight) || (supplied > 0))) { if ((height != 8 || (supplied < 0)) && ((height != originalHeight) || (supplied > 0))) {
height -= supplied.toInt() height -= supplied.toInt()
if (buttons.count() != 0) (height / 8).let { if (buttons.isNotEmpty()) (height / 8).let {
if (it > 0) barStage = it if (it > 0) barStage = it
} }
} }