Suppress a few warnings in Keystrokes.kt
This commit is contained in:
parent
eef39ebfe5
commit
1ccfba5c9e
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue