From b2d957f2c9f04b87762aae07478b0b0f8372da3a Mon Sep 17 00:00:00 2001 From: Username404-59 Date: Thu, 6 May 2021 12:58:11 +0200 Subject: [PATCH] Edit a condition of the scroll function 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 73f60d5..f21e1cd 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 @@ -51,7 +51,7 @@ class ClickBox( if ((height != 8 || (supplied < 0)) && ((height != originalHeight) || (supplied > 0))) { height -= supplied.toInt() if (buttons.isNotEmpty()) (height / 8).let { - if (it > 0) barStage = it + if (it in 1 downTo 0) barStage = it } } }