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 8bd7206..e06b738 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 / buttons.count()).let { + if (buttons.count() != 0) (height / 8).let { if (it > 0) barStage = it } }