Fix position of text on buttons
Signed-off-by: Username404-59 <w.iron.zombie@gmail.com>
This commit is contained in:
parent
79de0eedaa
commit
16bcccdded
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user