Set the base height of the progressbar to 8

This commit is contained in:
Username404-59 2021-05-04 14:57:46 +02:00
parent 7b1aa0f876
commit 8e444c9596
Signed by: Username404-59
GPG Key ID: 7AB361FBB257A5D1
1 changed files with 2 additions and 1 deletions

View File

@ -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()
}
}