From 06c4dea9be162666640d2684920e713248e25dab Mon Sep 17 00:00:00 2001 From: Username404-59 Date: Tue, 4 May 2021 18:39:55 +0200 Subject: [PATCH] Use the isNotEmpty method in ClickBox.kt --- .../kotlin/fr/username404/snowygui/gui/elements/ClickBox.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/src/main/kotlin/fr/username404/snowygui/gui/elements/ClickBox.kt b/common/src/main/kotlin/fr/username404/snowygui/gui/elements/ClickBox.kt index e06b738..09e597f 100644 --- a/common/src/main/kotlin/fr/username404/snowygui/gui/elements/ClickBox.kt +++ b/common/src/main/kotlin/fr/username404/snowygui/gui/elements/ClickBox.kt @@ -48,7 +48,7 @@ class ClickBox( with(buttonsProgressBar) { if ((height != 8 || (supplied < 0)) && ((height != originalHeight) || (supplied > 0))) { height -= supplied.toInt() - if (buttons.count() != 0) (height / 8).let { + if (buttons.isNotEmpty()) (height / 8).let { if (it > 0) barStage = it } }