Fix position of text on buttons

Signed-off-by: Username404-59 <w.iron.zombie@gmail.com>
This commit is contained in:
Username404-59 2026-02-06 03:27:03 +01:00
parent 79de0eedaa
commit 16bcccdded
Signed by: Username404-59
GPG Key ID: 7AB361FBB257A5D1

View File

@ -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