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 809dddb..6841574 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 @@ -41,10 +41,11 @@ class ClickBox( RenderSystem.disableBlend() RenderSystem.enableTexture() } + init { height = 8 } } fun scroll(supplied: Double) { with(buttonsProgressBar) { - if ((height != 0 || (supplied < 0)) && ((height != originalHeight) || (supplied > 0))) { + if ((height != 8 || (supplied < 0)) && ((height != originalHeight) || (supplied > 0))) { height -= supplied.toInt() } }