Suppress a few warnings in Keystrokes.kt

This commit is contained in:
Username404 2021-07-18 17:23:18 +02:00
parent eef39ebfe5
commit 1ccfba5c9e
Signed by: Username404-59
GPG Key ID: 7AB361FBB257A5D1
1 changed files with 2 additions and 2 deletions

View File

@ -16,11 +16,11 @@ object Keystrokes: ButtonImplWithHud() {
LEFT(180.0),
RIGHT(-120.0)
}
@Suppress("UNUSED_PARAMETER")
private val hud = object : ColoredElement(x = 135.0, y = 20.0, height = 36, width = 36, color = Colors.BLACK(), opacity = 0.5F) {
override var x: Double get() = (Minecraft.getInstance().window.guiScaledWidth / 2.0) - currentPosition; set(value) = Unit
override var y: Double
get() = Minecraft.getInstance().window.guiScaledHeight.toDouble() - yOrigin
set(value) = Unit
get() = Minecraft.getInstance().window.guiScaledHeight.toDouble() - yOrigin; set(value) = Unit
private val keysArray by lazy {
Minecraft.getInstance().options.run {
arrayOf(keyLeft, keyDown, keyRight, keyUp) to arrayOf(0.5, 0.5, 0.5, 0.5)