From c06535047c459945dbed76506cb9a78b8fd77735 Mon Sep 17 00:00:00 2001 From: Username404-59 Date: Sun, 11 Apr 2021 20:12:32 +0200 Subject: [PATCH] Don't multiply the full height in ClickBox.kt --- common/src/main/kotlin/fr/username404/snowygui/gui/ClickBox.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/src/main/kotlin/fr/username404/snowygui/gui/ClickBox.kt b/common/src/main/kotlin/fr/username404/snowygui/gui/ClickBox.kt index c168605..00b6253 100644 --- a/common/src/main/kotlin/fr/username404/snowygui/gui/ClickBox.kt +++ b/common/src/main/kotlin/fr/username404/snowygui/gui/ClickBox.kt @@ -24,7 +24,7 @@ class ClickBox(x: Double, y: Double, private val name: TranslatableComponent? = vertex(x + inclination, y, 0.0).colorEnd() // Render the box: - val fullHeight = (y + height) * 6 + val fullHeight = (y + height) + 80 vertex(x, fullHeight, 0.0).colorEnd() vertex(x + width + inclination, fullHeight, 0.0).colorEnd() vertex(x + width + inclination, y + height, 0.0).colorEnd()