From 290f521c827f52e655b7c8e763f3f58f449cbd65 Mon Sep 17 00:00:00 2001 From: Username404-59 Date: Thu, 6 May 2021 18:35:44 +0200 Subject: [PATCH] Revert "Edit a condition of the scroll function in ClickBox.kt" This reverts commit 0d2e67133c57bcf5c7cc4d9dfdd4e9208bb109f6. --- .../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 f21e1cd..73f60d5 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 in 1 downTo 0) barStage = it + if (it > 0) barStage = it } } }