From bb7d3425f4a628fe54d0028099455265f94e3f50 Mon Sep 17 00:00:00 2001 From: YuRaNnNzZZ Date: Thu, 24 Oct 2024 06:26:30 +0300 Subject: [PATCH] =?UTF-8?q?=D1=80=D0=B5=D0=BD=D0=B4=D0=B5=D1=80=D0=B8?= =?UTF-8?q?=D0=BC=20=D1=82=D0=B5=D0=BA=D1=81=D1=82=20=D0=B2=D0=BE=20=D0=B2?= =?UTF-8?q?=D1=81=D1=8E=20=D1=88=D0=B8=D1=80=D0=B8=D0=BD=D1=83=20=D0=B1?= =?UTF-8?q?=D0=BB=D0=BE=D0=BA=D0=B0=20font.width=20=D0=B2=D1=8B=D0=B4?= =?UTF-8?q?=D0=B0=D1=91=D1=82=20=D1=88=D0=B8=D1=80=D0=B8=D0=BD=D1=83=20?= =?UTF-8?q?=D0=BD=D0=B0=201=20=D0=BF=D0=B8=D0=BA=D1=81=D0=B5=D0=BB=D1=8C?= =?UTF-8?q?=20=D0=B1=D0=BE=D0=BB=D1=8C=D1=88=D0=B5,=20=D1=82=D0=B0=D0=BA?= =?UTF-8?q?=20=D1=87=D1=82=D0=BE=20=D1=87=D0=B5=D0=BC=20=D0=B1=D0=BE=D0=BB?= =?UTF-8?q?=D1=8C=D1=88=D0=B5=20=D1=82=D0=B5=D0=BA=D1=81=D1=82=20=D1=82?= =?UTF-8?q?=D0=B5=D0=BC=20=D0=B1=D0=BE=D0=BB=D1=8C=D1=88=D0=B5=20=D1=81?= =?UTF-8?q?=D0=BC=D0=B5=D1=89=D0=B5=D0=BD=D0=B8=D0=B5=20=D0=BE=D1=82=20?= =?UTF-8?q?=D1=8D=D1=82=D0=BE=D0=B3=D0=BE=20=D1=81=D0=B0=D0=BC=D0=BE=D0=B3?= =?UTF-8?q?=D0=BE=20=D0=BF=D0=B8=D0=BA=D1=81=D0=B5=D0=BB=D1=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../mc/otm/client/render/blockentity/HoloSignRenderer.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/kotlin/ru/dbotthepony/mc/otm/client/render/blockentity/HoloSignRenderer.kt b/src/main/kotlin/ru/dbotthepony/mc/otm/client/render/blockentity/HoloSignRenderer.kt index 45ca54dd4..dc86fa0d6 100644 --- a/src/main/kotlin/ru/dbotthepony/mc/otm/client/render/blockentity/HoloSignRenderer.kt +++ b/src/main/kotlin/ru/dbotthepony/mc/otm/client/render/blockentity/HoloSignRenderer.kt @@ -38,7 +38,7 @@ class HoloSignRenderer(private val context: BlockEntityRendererProvider.Context) if (tile.textAutoScale) { val totalWidth = lines.maxOf { font.width(it) }.toFloat() val highest = totalWidth.coerceAtLeast(totalHeight) - val mul = if (highest > 64f) 1f / (highest / 64f) else 64f / highest + val mul = if (highest > 96f) 1f / (highest / 96f) else 96f / highest poseStack.scale(mul, mul, mul) }