From 16bcccdded1cb9f537851eb3663819af9c9a5ba3 Mon Sep 17 00:00:00 2001 From: Username404-59 Date: Fri, 6 Feb 2026 03:27:03 +0100 Subject: [PATCH] Fix position of text on buttons Signed-off-by: Username404-59 --- .../src/main/kotlin/fr/username404/snowygui/utils/FontUtil.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/src/main/kotlin/fr/username404/snowygui/utils/FontUtil.kt b/common/src/main/kotlin/fr/username404/snowygui/utils/FontUtil.kt index 126249d..678767b 100644 --- a/common/src/main/kotlin/fr/username404/snowygui/utils/FontUtil.kt +++ b/common/src/main/kotlin/fr/username404/snowygui/utils/FontUtil.kt @@ -12,7 +12,7 @@ object FontUtil { stack.scale(scaleFactor, scaleFactor, Matrix3x2f()) guiGraphics.drawString( Minecraft.getInstance().font, text, - (x / scaleFactor).toInt(), (y / scaleFactor).toInt(), + x.toInt(), y.toInt(), ARGB.opaque(color.hexValue), false ) val factorToOriginal = 1F / scaleFactor