Move the clickboxHeightOffset const to a companion object
This commit is contained in:
parent
ca70cc7fb1
commit
7a4989eec8
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue