diff --git a/common/src/main/kotlin/fr/username404/snowygui/gui/feature/Keystrokes.kt b/common/src/main/kotlin/fr/username404/snowygui/gui/feature/Keystrokes.kt index c44a55d..56b9762 100644 --- a/common/src/main/kotlin/fr/username404/snowygui/gui/feature/Keystrokes.kt +++ b/common/src/main/kotlin/fr/username404/snowygui/gui/feature/Keystrokes.kt @@ -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)