From 7a4989eec8581bdc576a3bc28d4c8a0564dd5ae7 Mon Sep 17 00:00:00 2001 From: Username404-59 Date: Tue, 4 May 2021 21:15:55 +0200 Subject: [PATCH] Move the clickboxHeightOffset const to a companion object --- .../kotlin/fr/username404/snowygui/gui/elements/ClickBox.kt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 8d02f52..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 @@ -14,7 +14,6 @@ import net.minecraft.client.Minecraft import net.minecraft.network.chat.TranslatableComponent import org.lwjgl.opengl.GL20 -const val clickboxHeightOffset: Int = 80 class ClickBox( x: Double, y: Double, color: Int = 0x6C9E9D, @@ -59,8 +58,9 @@ class ClickBox( } } - private companion object { - const val inclination: Double = 2.5 + companion object { + const val clickboxHeightOffset: Int = 80 + private const val inclination: Double = 2.5 } override fun render(poseStack: PoseStack?) { runBlocking {