From 054d393976931156d112117e9bec7b0b28a10ba3 Mon Sep 17 00:00:00 2001 From: DBotThePony Date: Sun, 16 Oct 2022 18:15:01 +0700 Subject: [PATCH] =?UTF-8?q?YuRaNnNzZZ=20=E2=80=94=20=D0=A1=D0=B5=D0=B3?= =?UTF-8?q?=D0=BE=D0=B4=D0=BD=D1=8F,=20=D0=B2=2018:11=20=D0=B0=20=D1=87?= =?UTF-8?q?=D1=91=20=D0=BE=D1=84=D1=84=D1=81=D0=B5=D1=82=20=D1=82=D0=B0?= =?UTF-8?q?=D0=BA=D0=BE=D0=B9=20=D0=BD=D0=B5=20=D0=BF=D0=BE=20=D1=86=D0=B5?= =?UTF-8?q?=D0=BD=D1=82=D1=80=D1=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ru/dbotthepony/mc/otm/client/AndroidMenuKeyMapping.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/kotlin/ru/dbotthepony/mc/otm/client/AndroidMenuKeyMapping.kt b/src/main/kotlin/ru/dbotthepony/mc/otm/client/AndroidMenuKeyMapping.kt index c3db69ee6..6d83cd950 100644 --- a/src/main/kotlin/ru/dbotthepony/mc/otm/client/AndroidMenuKeyMapping.kt +++ b/src/main/kotlin/ru/dbotthepony/mc/otm/client/AndroidMenuKeyMapping.kt @@ -270,7 +270,7 @@ object AndroidMenuKeyMapping : KeyMapping("key.otm.android_menu", KeyConflictCon } val y = minecraft.window.guiScaledHeight * 0.2f - var x = minecraft.window.guiScaledWidth * 0.5f - (features.size.toFloat() * (COOLDOWN_ICON_SIZE / 2f + COOLDOWN_ICON_MARGIN / 2f)) + var x = minecraft.window.guiScaledWidth * 0.5f - (features.size.toFloat() * COOLDOWN_ICON_SIZE / 2f + (features.size - 1).toFloat() * (COOLDOWN_ICON_MARGIN / 2f)) for (feature in features) { feature.renderIcon(event.poseStack, x, y, COOLDOWN_ICON_SIZE, COOLDOWN_ICON_SIZE)