Move the clickboxHeightOffset const to a companion object

This commit is contained in:
Username404-59 2021-05-04 21:15:55 +02:00
parent ca70cc7fb1
commit 7a4989eec8
Signed by: Username404-59
GPG Key ID: 7AB361FBB257A5D1
1 changed files with 3 additions and 3 deletions

View File

@ -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 {